Need some Math Help

Pascal

Tarutaru Extremist
Adventurer
Joined
Sep 22, 2004
Messages
1,602
Location
West Virginia
Nation Banner
Bastok
Main Job
RedMage-Male
Secondary Job
WhiteMage-Male
Third Job
BlackMage-Male
Server
Quetzalcoatl
Linkshell
NoizyTribe
FFXI
Paswaru
FFXIV
Pascal Fairchild
Ok, I know this is very simple math but for some reason the solution is eluding me. I know we have other programmers here so I’m requesting some help.

I have a ratio 5:4 (i.e. a fraction). To convert that to a decimal you divide 5 by 4 to get 1.25.

Ok, now I need to convert the decimal back to a fraction, which I know how to do, but I need to do it with out having a whole number (i.e. back to 5:4 or the equivalent instead of 1 and 1 / 4).

Hope this makes since, and thanks for any help!
 
So this question is more related to program coding than math, correct? I'm good at math, but I don't know jack about programming beyond Q-Basic (But I'm awesome at Q-Basic)
 
Just the processes, I can convert the logic into code. I keep getting hung up on the whole number.
 
Phraust said:
1.25 = 125%

1 & 25%

25% = 25/100

25/100 = 1/4

1 & 1/4

1 x denominator = 4

1 & 1/4 = 5/4 = 5:4

Thank you!!!!! So frustrating when you can't figure something out when it is so simple.
 
I was just gonna say 1 = 4/4, then 4/4 + 1/4 = 5/4 = 5:4

I dunno.

Maybe I'm not as keen with math as I thought.
 
I saw your message Carth. Thank you too for replying.
 
yay!

now I miss math

I'm going to draw sine waves now
 
Sine waves are the coolest!!!!!!

Ch8-10.gif


Takinori: Level 57 Ninja/Warrior
 
Back
Top