I thought PB (Dos)had a FORMAT command? That is, if I have the
following:
input #1, LatVal :' We will assume the value is 32.34
LatV$ = Format$(LatVal,"00.0000") :'Now LatVal$ contains 32.3400
'next time around, when I read the next record, I might see:
input #1, LatVal :' Assume LatVal = 32.123456789
LatV$ = Format$(LatVal,"00.0000")
In the last case, I want LatV$ to be 32.1234, four decimal
places. I could multiply the value by 10,000, take the INT
of it, and then divide so it gets the decimal portion back, but
I was hoping for a more accurate way.
If PB (dos) does not have this function, can I "add-in" the
function in someway?
Thanks.
Robert
------------------
following:
input #1, LatVal :' We will assume the value is 32.34
LatV$ = Format$(LatVal,"00.0000") :'Now LatVal$ contains 32.3400
'next time around, when I read the next record, I might see:
input #1, LatVal :' Assume LatVal = 32.123456789
LatV$ = Format$(LatVal,"00.0000")
In the last case, I want LatV$ to be 32.1234, four decimal
places. I could multiply the value by 10,000, take the INT
of it, and then divide so it gets the decimal portion back, but
I was hoping for a more accurate way.
If PB (dos) does not have this function, can I "add-in" the
function in someway?
Thanks.
Robert
------------------
Comment