Skip to content

Commit

Permalink
Better doc for quantize
Browse files Browse the repository at this point in the history
Fixes #322
  • Loading branch information
jclark committed Jun 2, 2022
1 parent fd0d593 commit f6fc79f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lang/lib/decimal.bal
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public isolated function abs(decimal x) returns decimal = external;
# + return - closest decimal value to `x` that is an integral multiple of 10 raised to the power of `-fractionDigits`
public isolated function round(decimal x, int fractionDigits = 0) returns decimal = external;

# IEEE quantize operation.
# Return a decimal with a specified value and exponent.
# Return a decimal value that has the same value (except for rounding) as the first
# argument, and the same exponent as the second argument.
# This is the IEEE quantize operation.
# + x - decimal value to operate on
# + y - decimal value from which to get the quantum
# + return - `x` with the quantum of `y`
Expand Down

0 comments on commit f6fc79f

Please sign in to comment.