Currently all number literals are implicitly converted to Float, which can lead to unexpected output, i.e.
"{{ value|default:0 }}" will output 0.0 where 0 is more likely expected. This fix first checks if literal is an Int and then returns it, otherwise it returns Float.
Currently all number literals are implicitly converted to Float, which can lead to unexpected output, i.e.
"{{ value|default:0 }}"
will output0.0
where0
is more likely expected. This fix first checks if literal is an Int and then returns it, otherwise it returns Float.