I print a reading with Put_Line ("Temp=" & Integer'Image (T) & "C"); and get Temp= 25C, with an unwanted space after the equals sign. When I use Ada.Integer_Text_IO.Put (T); instead, the number appears after a long run of spaces. And Put_Line (T); does not compile at all.
Where does the space come from, and what is the normal way to print integers and floating-point values in a fixed, compact format, for example for a log line sent over a serial port?




