• warning C108: '=': possible value truncation
    Hello, there might be an undetected overrun in the result of 'a * b'. So i used the cast ((unsigned long long int)a to force the result of 'a * b' to long long. Unfortunately this compiler warning...
  • float truncation
    hi everyone; i am using a float value for my calculation eg: weight = 999.99 (ideally) but float weight = 999.989999 (by float data type as we get 6 digits after decimal) i am not displaying this...
  • Inacurate precision truncating.
    Hi folk, I have u16 wTemp = 0; fsingle fTemp = 17.5123; wTemp = (u16)fTemp; Somehow, the wTemp is 17. Technically, the wTemp should be 18, do anybody know what do I have to do for the compiler...
  • How to truncate a file ?
    We are using Keil 5.22 and RTL library on a LPC1768 board on which we have an SD card interface. All the usual file access works, fopen(), fprintf(), fdelete(), frename() etc... However I can...
  • Warning 52: Value has been truncated into 8 bits
    Hi, In my program which initially works fine, after i initialize 1 or more memory space for variables, it shows "Warning 52: Value has been truncated into 8 bits"! Although it is just a warning...