MrMikey83
New Member
I'm using Codevision AVR (C code) to program my Atmel uProcessors.
I'm trying to get the bugs out of a piece of code and realised that it is rounding decimal numbers (1.5 3.14159 etc) to the whole number. After finding this, I realized I don't have any idea how to keep the decimal spaces without rounding.
Any help is greatly appreciated!
~Mike
I'm trying to get the bugs out of a piece of code and realised that it is rounding decimal numbers (1.5 3.14159 etc) to the whole number. After finding this, I realized I don't have any idea how to keep the decimal spaces without rounding.
Any help is greatly appreciated!
~Mike