gdl-lang/common-clinical-models

Decimal input round up or round down in fixture

Closed this issue · 3 comments

I have a decimal input for serum dig level which will be round up or down in fixture. If the digit is less than 5, round the previous digit down; if it's 5 or greater, round the previous digit up.
Digifab Round decimal number
Guideline:https://www.mdcalc.com/digifab-digibind-dosing-digoxin-poisoning#evidence
@rashmidamu

@MaryamRazavi, it is probably a bug in the gdl2 editor. It executes as expected in the gdl2 engine. So, it should work when you use the fixture generator to create the test fixture for this guideline.

@rashmidamu This issue is fixed in gdl 2 editor preview 4.

Great!