toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
A math question - How do you mathematically find the reciprocal of a number?
Rumi
Member, PRO
Posts:
343
October 2011
edited November -1
in
Working with GS (Mac)
I know the reciprical of 5/6 is 6/5, but is there some kind of mathematical formula you could use in the expression editor that could figure it out?
Comments
RedlerTech
Member
Posts:
1,583
October 2011
Game.Number = attribute
Self.reciprical = 1/game.number
That's for whole numbers. Basically for fractions, store the numerator and denominator in attributes and the. Reciprocal = denominator/numerator
Matt
http://matthewredler.com
Rumi
Member, PRO
Posts:
343
October 2011
NextGen
said
:
Game.Number = attribute
Self.reciprical = 1/game.number
That's for whole numbers.
Would this also apply for decimals?
wormil
Member
Posts:
127
October 2011
0.2 = 2/10 = 1/5
1/0.2 = 5
Also, I might add a suggestion for
http://www.analogx.com/contents/download/Programming/pcalc/Freeware.htm
Rumi
Member, PRO
Posts:
343
October 2011
Thanks for the link and advice. I'll download it on my PC when I muster up the courage to see the lack of the aqua interace
wormil
Member
Posts:
127
October 2011
Might I suggest attempting to run it in wine? I'll give it a go in a bit if you want.
wormil
Member
Posts:
127
October 2011
Wineskin runs the app perfectly.
Sign In
or
Register
to comment.
Comments
Self.reciprical = 1/game.number
That's for whole numbers. Basically for fractions, store the numerator and denominator in attributes and the. Reciprocal = denominator/numerator
Matt
http://matthewredler.com
1/0.2 = 5
Also, I might add a suggestion for http://www.analogx.com/contents/download/Programming/pcalc/Freeware.htm