Issue when formatting text field with servoy format

Hello

we are using “servoyformat.js” for formatting Number/currency in our third party control.
i have applied format “#0.00” to Text-box.

Now, every time when i am typing it return value like.
=> 3.587 → 30.00
=> 46 → 40.00

i want the result like.
=> 3.587 → 3.59
=> 46 → 46.00

Note: in formatState parameters that are passed are (type : “TEXT”, display: “#0.00”, edit: “#0.00”)
Please guide how to do it.