SA-MP Forums Archive
Fractions - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fractions (/showthread.php?tid=537455)



Fractions - Kruger000 - 15.09.2014

Hi
I have a problem and actually asked how to do fraction notation y_ini? Please help, preferably some code on the sample fraction.

Thanks!


Re: Fractions - Pottus - 15.09.2014

I would look up some c based decimal to fraction conversion algorithms you will need to save in a decimal format then convert to fraction when displaying you data.


Re: Fractions - Kruger000 - 15.09.2014

Would you give advice to write the code for a sample fraction?