gdl-lang/common-clinical-models

round up a number

Closed this issue · 2 comments

round up a number

How can we create a rule to round a number in Gdl? for example 12.5 round up to 13.

Hi @MaryamRazavi, you add a round function like this:

score.magnitude=round(variable1.magnitude + variable2.magnitude....)

For a better example you can take a look in the guideline Osteoporosis_Risk_score_guideline on master branch.