Hello,
I’m making a little program about calculations, but instead of a number like 1,33333… i would like to get 1/3 (one third).
To do so i found THIS but i don’t know how to use it in unity, i am not able to declare any frational variable neither to convert a number to a fraction.
Could you help me?
Thanks in advance
You could try downloading the source code and including it within your projects asset files.
- I’d recommend adding some comments to ensure you document the source code location and potential version.
I’ve used this method before and it worked out fine.
Ok, i worked out how to use it.
i simply put the script inside a new folder in my project called “references” then i was able to write
using Mehroz; //mehroz is the name of the namespace of the script