Be a Supporter!

the NG Calculator

Score:
rated 4.20 / 5 stars
Views:
304,298 Views
Share Links:
Genre:
Gadgets - Other
Tags:
newgrounds
calculator

Credits & Info

Uploaded
Jul 25, 2005 | 6:05 PM EDT
  • Daily 5th Place July 26, 2005

If you liked this, check these out!


Author Comments

Denvish made a much better version about eight months too late. Go check it out over here:
http://www.newgrounds.com /portal/view/301005

Yay! Daily 5th Place!
Yay! Monthy 5th Place! Wait... How the hell did that happen?

Find out how much your account is worth.
Find out how much somebody else's account is worth.
Be sorely disappointed when you learn how little your account is worth.
Sell your accout on eBay and use the money for booze and porn.

The possibilities are endless with the NG Calculator!

Edit:
Included whistle + batting avg.
Weighed Audio + Flash submissions hihger.

Troubleshooting:
If you keep getting NaN, make sure you are filling in ALL the fields. If they don't apply to you, leave them as zero.
Remember to include the decimal in your Batting avg. It should 2.36, not 236.
BP referrs to TOTAL Blam and Protection points.

Reviews


Magnum47Magnum47

Rated 4.5 / 5 stars

GG 0.56 cents



PsychopathPsychopath

Rated 3.5 / 5 stars

By the way, if your results are returning a value of NaN, you need to remove things like commas from the equation. Commas in ActionScript are used for things like declaring a series of variables or creating an array, so when you type in a comma, it doesn't register as a string but rather you're telling the interpreter that a value like, say, "2,509" for your B/P score is actually two separate values; 2 and 509.

Scottmale24 didn't anticipate this and didn't optimize his code to accept commas as a string, only as raw script input, which means commas are taken as code by the interpreter. Had he programmed it to take string data rather than raw numbers, that would allow him to convert the string back into a numeric value while removing string values like letters and punctuation marks so the raw number data could be plugged back into the calculator without error.

When an SWF file returns a value of NaN, you've probably entered a value that the interpreter doesn't understand or you've accidentally entered in actual ActionScript code that undermines the program's design. You can actually cause Flash to redefine variable datatypes by giving it inappropriate values like letters, which will cause Flash to redefine a mathematical variable to a string. This is because Flash is capable of accepting what's called "implicit programming", where if a variable is left undefined in datatype and you plug in a value, the interpreter will attempt to fill in the blanks and assign a datatype for you.



DakTdestroyerDakTdestroyer

Rated 3.5 / 5 stars

Well awesome im worth $5.68 nice



angrivatorangrivator

Rated 5 / 5 stars

for some reason im worth $NaN


People find this review helpful!

tomboyrebeccatomboyrebecca

Rated 5 / 5 stars

O.O HOLY! Im worth 6,221$ 33 cents O.O WOW
O_O
LOVE IT

------------------------------------------------------------- Rebecca ----------------------------------------------------------------------