lib: Fixed some bugs with format specifiers, these causes a double to be displayed as a float