Default value 0.00 in CurrencyField

Jmix 1.3
First, I wonder if it’s possible to have a default value on CurrencyField (I just setValue onInit at the mean time).
Second, I set the datatype as BigDecimal and try to set a default value of 0.00 but jmix auto trim the decimal 0. Is there a way to set it?

@jolisa.chan.store I am not a support member but decimal fields are a common topic.

The default decimal pattern will change when migrating to Jmix 1.5.5. https://docs.jmix.io/1.x/jmix/1.5/whats-new/index.html#decimal-format

I think, you could just port that change into your application by redefining the decimal pattern in your applications localization resources.

If the field is not bound to an entity attribute, it’s correct to initialize it in the onInit() handler.

The number format is defined by the datatype, and you can adjust it as @bank recommends.