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.

Code Snippets / [DBP] Scientific number calculator functions! (i.e. 1.4*10^14)

Author
Message
Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 18th Apr 2009 02:44
You can take huge numbers, and multiply them! it's not incredibly accurate, but it does use double floats. Multiplying, Dividing, Subtracting, and Adding are all supported.

This demo, which includes the functions, first demonstrates multiplication by...
Finding the force that two protons at piE-10 meters apart would exert on eachother. (~9E9 * 1.6E-19 * 1.6E-19 / 3.14E-10^2)

The next demo is addition. That demo adds up the mass of all 8 planets in our solar system and the sun (stupid pluto), and then subtracts the mass that the sun loses in a billion years, which can be calculated with this:

1.534 x 10^13=mass the sun loses every hour
24*365*1000000000=hours in a billion years



Enjoy

Login to post a reply

Server time is: 2024-05-03 09:42:58
Your offset time is: 2024-05-03 09:42:58