I am working on a new program that uses a lot of float values. However, I notice that if I set the value it will not be precise..
ie.
float val = 10.3
may show up in the debugger as 10.300002 or 10.299999993
How can I make these numbers alway return 10.3 exactly?
Thanks,
ie.
float val = 10.3
may show up in the debugger as 10.300002 or 10.299999993
How can I make these numbers alway return 10.3 exactly?
Thanks,