Georgi Guninski on Mon, 02 Sep 2024 17:40:50 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

How to show few decimal digits of a real number?


I have real number A and want to show only few fractional digits,
how to do it directly without floor/round?

The following doesn't work:
? precision(Pi)
%3 = 38
? precision(Pi,2)
%4 = 3.141592653589793239