Hey I have been reading a bit through the sophia documentation and did a bit of the tutorial, and have these questions:
How do you represent floats in Sophia if it only has ints and uints?
How would you use an oracle for example, to get that the temperature in Sophia Bulgaria is 15.2 °C if you can’t use float as a data type? Or specify that your erc-20 token has 15 decimal places?
How come floats are used as a data type in the sophia tutorial? For example:
/* this is a tuple of 3 items, explained next */
type intCoordinates = (int, int, int);
type floatCoordinates = (float, float, float);
type coordinates('a) = ('a, 'a, 'a)
let buddy: coordinates(float) = (10.5, 20.5, 20.5)
type coord3d = (float, float, float) let my3dCoordinates: coord3d = (20.0, 30.5, 100.0)
When I thought floats weren’t used?
Thanks for the answers