Search
Preparing search index...
The search index is not available
quantlib.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"ql/math/rounding"
ClosestRounding
Class ClosestRounding
Hierarchy
Rounding
ClosestRounding
Implements
UnaryFunction
<
Decimal
,
Decimal
>
Index
Enumerations
Type
Constructors
constructor
Methods
f
precision
rounding
Digit
type
Constructors
constructor
new
Closest
Rounding
(
precision
:
Integer
, digit
?:
Integer
)
:
ClosestRounding
Parameters
precision:
Integer
Default value
digit:
Integer
= 5
Returns
ClosestRounding
Methods
f
f
(
value
:
Decimal
)
:
Decimal
Parameters
value:
Decimal
Returns
Decimal
precision
precision
(
)
:
Integer
Returns
Integer
rounding
Digit
rounding
Digit
(
)
:
Integer
Returns
Integer
type
type
(
)
:
Type
Returns
Type
Globals
"ql/math/rounding"
Ceiling
Truncation
Closest
Rounding
Type
constructor
f
precision
rounding
Digit
type
Down
Rounding
Floor
Truncation
Rounding
Up
Rounding