Skip to content
Snippets Groups Projects
Commit be32e980 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Allow floating-point numbers for new sum insured of dynamic increases

parent 2487a019
Branches
Tags
No related merge requests found
......@@ -479,7 +479,7 @@ InsuranceContract = R6Class(
# Override with arguments explicitly given
arguments = list(...)
params[names(arguments)] = arguments[names(arguments)]
params$comment = sprintf("Dynamic increase at time %d to sum %d", t, NewSumInsured)
params$comment = sprintf("Dynamic increase at time %d to sum %02f", t, NewSumInsured)
do.call(self$addBlock, params)
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment