... although I know about workarounds .... ,
calculating the following
Code: Select all
float V=BatteryLevel()/1000;
printf("Volt=%6.3f",V);
7.000 (BatteryLevel()=7312)
8.000 (BatteryLevel()=8294)
why don't I get values like 7.312 or 8.294 ?
As we got float as the result type I had expected that it should work automatically correctly casted to float.
what's faulty with the implicite type casting?
(and could we probably have explicite type casting soon?)