How can I control the output precision and format when printing a Real value?
A28: All output formatting when you use the Put_To operator (<<) for built-in types is actually done by a function called To_Text. There is one version of To_Text for each argument type Boolean, Character, Integer, and Real. So, for example, the expression To_Text(true) has the Text value "1" (perhaps unexpectedly, but this is the current state of affairs (To_Text(false) is "0")); the expression To_Text('A') has the Text value "A"; the expression To_Text(17) has the Text value "17"; and the expression To_Text(3.141592) has the Text value "3.141592". If you output To_Text of an object of a built-in type, it is just the same as outputting the object directly. So both the Put_To statements below output the same thing: "125".