Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Long, Double and Single
#11
Quote:
Macric Wrote:
Moneo Wrote:Watch out when converting floating point numbers to a string. The number may have bunch of values after the decimal point and you'll end up with a very long string.
i am believing that that problem could be elude by using the functions MKL$, MKS$, MKD$. that way a long or single number could be converted to a Four bytes string; double numbers could be converted to an Eight bytes string.


yeah, but you can't just print that string, the 'chars' in that string contain the actual byte data of those numbers. its not the same thing.
It depends on if the data file is required to be able to be read by humans - many data files aren't. It's trivial to convert the string back into floating-point form anyway.
stylin:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)