For such number there is (as far as I know) no (native) solution.
Numbers are stored internally as a long integer (range 2,14^9) plus two
bytes for decimal representation ; but you can only store exact values as
integer then retrieve using IDEC$(value, number, decimal).
You can't use more than 10 for value (in fact only 9 are accurate for values
> 2)
For greater number you need your own representation : you can store longer
numbers in string or in more than one number ...but than you must create
your own arithmetic.

-----Message d'origine-----
De : Fran�ois Van Emelen [mailto:[EMAIL PROTECTED]
Envoy� : mardi 11 mars 2003 12:27
� : [EMAIL PROTECTED]
Objet : Re: [ql-users] Sbasic and numbers





Claude Mourier 00 wrote:
> Marcel gives already the right (and only ?) answer : always use integer
> representation for number then convert them with IDEC$/FDEC$.
> Sad method as this slow down a lot the process.
> 
> Claude
> 

  Sorry for the delay, but I couldn't reply earlier; UPC (cable company)
was down yesterday afternoon and evening.

Fdec$ is limited to 9 digits, that means that you can't even display the 
annual (2002) of the EC for Education( for example).
educ=776400000 :rem euros= 2 decimals officeal way of displaying values 
in Euros
print fdec$(educ,12,2): rem this returns a series of *

Thanks for your help.
Fran�ois Van Emelen

Reply via email to