rosflight / airbourne_f4

Be the Jason Bourne of the skies
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

printf neglects 0's after the decimal place #47

Open BillThePlatypus opened 4 years ago

BillThePlatypus commented 4 years ago

When using printf to print floating point numbers, any zeros between the decimal place and the next non-zero digit are neglected. For example:

This is likely because the printf library originally didn't support floating point numbers. Perhaps it is treated as two ints separated by a period?