Fixed floating point conversion

Fixed a bug, where floating point values in the end of an expression also got '.0' appended (e.g. '230 * 0.4' became '230.0 * 0.4.0').