A function to set the number of decimal places. This is used in the Hull White Model to address the floating point issue that may arise when simulating interest rates.
1 | DecimalSet(x, k)
|
x |
the number to be rounded |
k |
the number of decimal places |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.