I should to cut the value to int and float parts. Like '21' - want to get '2' and '1' as ints.
float fp; // float part
float fp1; // new "int-style" float part
float ip; // int part
fp = modff(21.0/10, &ip);
ip = ip*10; // there i will get the '2'. Its works fine
fp1 = fp*10; // there i will get a null (0.09999999 by debugger,
but should to be 0.99+)...
But with any other value, '22' for instance, it is will work. fine also. Whats wrong? :(
Seems like this function doesn't like the unit
==================================
Yeah easy fixed! :) I used 'modf' instead of 'modff'. It has 'double' datatype, so it works fine now )
Thanks for the answers