Closed dthiex closed 2 years ago
Actually, this is not a Web Editor issue but a Vue Component issue. Moving it...
I can't change the cost representation in a good way as this originates from JavaScripts toLocaleString implementation, which uses three fraction digits when no valid currency is set (and processing units are obviously not considered a valid currency ;-) ). I could turn off the thousand separator, but not sure whether that's helpful. Nevertheless, the file size is now aligned and shows "15,2 MB" instead.
I could turn off the thousand separator, but not sure whether that's helpful...
I think for a bit bigger jobs that use >1000 PUs it would be helpful. Can't you set something maximumFractionDigits = 2?
I can, but then I'm forcefully overriding the currency defaults, which I still want to be considered.
Nevertheless, the file size is now aligned and shows "15,2 MB" instead. That should help a bit...
Okay, I just checked ISO-4217 and the codes are all 3 chars. So I can set the maximumFractionDigits to 2 for all currencies that are not 3 chars long :-)
Fixed, will need some time until it's landing in the Web Editor though...
In order to avoid confusion with the displayed cost estimate I think it would make sense to only display 2 decimals (FF takes the separator from the system settings for the costs). 2 decimals is still more then precise enough.
Additional I think the same separator should be used for costs and file size.