Formatted numeric output: Difference between revisions

Content added Content deleted
(review →‎Pascal)
Line 1,385: Line 1,385:
// writes n with
// writes n with
// - at least wholeNumberPlaces characters in total
// - at least 0 characters in total
// - exactly fractionalPlaces post-radix digits
// - exactly fractionalPlaces post-radix digits
// rounded
// rounded
write(n:wholeNumberPlaces:fractionalPlaces);
write(n:0:fractionalPlaces);
end;</lang>
end;</lang>