Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / how to print very small values

Author
Message
qwe
20
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 22nd Jul 2013 02:15
for example, G# = 6.67384 * 10.0 ^ -11.0

also, how can i display very large values?

the print() function returns 0.00000 for the above
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 22nd Jul 2013 03:06 Edited at: 22nd Jul 2013 03:07
Pass the long values through the Str() function, giving a second parameter to indicate the number of decimals you wish to display.

Print(Str(G#, 15))

This will print G# up to 15 decimal points.

Login to post a reply

Server time is: 2024-05-02 03:51:08
Your offset time is: 2024-05-02 03:51:08