Is there a way to “split” a float so I get the value before the decimal mark and the value after the decimal mark?
float myVal = 1.234;
// how to get .234 and 1
I saw another example but it’s in Java and I can’t figure out how to do this in objective-C.
You can use modf function: