directus-extension-computed-interface icon indicating copy to clipboard operation
directus-extension-computed-interface copied to clipboard

Decimal parseInt

Open cesarechazu opened this issue 1 year ago • 2 comments

Hello, when selecting a decimal value it is always converted to an integer value I find this in interface.vue

if (['integer', 'decimal', 'bigInteger'].includes(props.type)) { return parseInt(res) || 0; } if (['float'].includes(props.type)) { return parseFloat(res) || 0; }

I hope it is helpful, thank you

cesarechazu avatar May 01 '24 22:05 cesarechazu

This is preventing the use of the extension when working with monetary values.

pedrofnts avatar Jul 08 '24 22:07 pedrofnts

I Just experienced the same issue. Cannot correctly sum up decimal monetary values (e.g. EUR)

Brunni avatar Oct 08 '24 17:10 Brunni