George Gwilt schreef:
> |Still hoping someone will write a routine to print/display |large 
> |and very small numeric values in a readable way; I can read
> |'9,876,543,210.00' but not 9.87653954E9   :( 
> 
> The FPU on a Q40 can produce numbers up to about 24 significant digits in BCD 
> format. I used that to print FP numbers of up to that size.
I haven't got a Q40 and  I don't know  anything about 'digits in 
BCD format'.
> 
> An integer held as a QL variable is restricted to 2^31 (or so). Thus the 
> number 9876543210 can only be held in the QL in fp format. But the mantissa 
> is not long enough to hold all 10 digits so you could never expect to print 
> them all. However, it is quite easy to print as many significant digits as 
> are available, and with preceding or succeeding zeroes (as many as you like) 
> to replace the rather nasty 34E40 notation.
> 
> I'm sure I have done this in the past, but never thought it worth while 
> publishing it! 
It would be worth while, I think.
François Van Emelen

> George
<SNIP>

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to