Returns x expressed as a floating-point number rounded to n decimal places. When decimal(0,expression) is used with an expression, the system automatically inserts commas to separate thousands.
From http://www.brownstone.net/support/edu/authoring/
Maple T.A.'s built-in functions, including decimal(n, x), are documented in the its online help system.
On your specific question, decimal(2,-0.625) returns -0.62 while decimal(2, 0.625) returns 0.63. Similarly, decimal(1, -0.65) = -0.6 while decimal(1, 0.65) = 0.7. What is common to all these cases is that Maple T.A. rounded up whenever the number lay right in the middle.
decimal(n, x) Returns x
decimal(n, x)
Returns x expressed as a floating-point number rounded to n decimal places. When decimal(0,expression) is used with an expression, the system automatically inserts commas to separate thousands.
From http://www.brownstone.net/support/edu/authoring/
Regards, Hans van Walen
Dear Harry, Maple T.A.'s
Dear Harry,
Maple T.A.'s built-in functions, including decimal(n, x), are documented in the its online help system.
On your specific question, decimal(2,-0.625) returns -0.62 while decimal(2, 0.625) returns 0.63. Similarly, decimal(1, -0.65) = -0.6 while decimal(1, 0.65) = 0.7. What is common to all these cases is that Maple T.A. rounded up whenever the number lay right in the middle.
Thank you,
Carl Hickman