How to deal with Number precision in Actionscript?

后端 未结 14 1243
自闭症患者
自闭症患者 2020-11-29 03:23

I have BigDecimal objects serialized with BlazeDS to Actionscript. Once they hit Actionscript as Number objects, they have values like:

140475.32 turns

14条回答
  •  清歌不尽
    2020-11-29 04:06

    You can use property: rounding = "nearest"

    In NumberFormatter, rounding have 4 values which you can choice: rounding="none|up|down|nearest". I think with your situation, you can chose rounding = "nearest".

    -- chary --

提交回复
热议问题