pi and floating numbers
Jan 24, 2009 23:48:06 GMT -5
Post by davos1 on Jan 24, 2009 23:48:06 GMT -5
Hi, :)
is there a way to use floating numbers or high precision numbers in run basic?
It seems that numbers are truncated to 8 decimals.
for example I entered a pi value:
print len(str$(pi)) -->outputs 10 ("3." plus 8 decimals)
print
thanks a lot
Alberto
is there a way to use floating numbers or high precision numbers in run basic?
It seems that numbers are truncated to 8 decimals.
for example I entered a pi value:
pi=3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303820
print str$(pi) -->outputs 3.14159265print len(str$(pi)) -->outputs 10 ("3." plus 8 decimals)
using("###.#######################################################################################################################################################################################################",pi)
here the output is any another other number:3.1415926535897941666764061799003196457407267770559370466063992573254025652689983941031662858642277781295157467407790749710221960300978624104036248025100991404062298709315003240486150017521864002240512
thanks a lot
Alberto