[Custom Input Masks] How to use MaskCurrency without rounded number money

Forge Component
(38)
Published on 22 Apr by Marcelo Ferreira
38 votes
Published on 22 Apr by Marcelo Ferreira

hi every one, need your help guys.


I want use MaskCurrency without using round up function.

Currently:

ex: 1.3598 => 1.36

I want to display: 1.3598 => 1.35 

I'm stucking here. Any one can help me. Thank you so much.

Duong Nguyen wrote:

hi every one, need your help guys.


I want use MaskCurrency without using round up function.

Currently:

ex: 1.3598 => 1.36

I want to display: 1.3598 => 1.35 

I'm stucking here. Any one can help me. Thank you so much.

Hi Duong,

Please go through below link

https://github.com/RobinHerbots/Inputmask

Hope this will help :)

Thanks,

AV


Amit Verma wrote:

Duong Nguyen wrote:

hi every one, need your help guys.


I want use MaskCurrency without using round up function.

Currently:

ex: 1.3598 => 1.36

I want to display: 1.3598 => 1.35 

I'm stucking here. Any one can help me. Thank you so much.

Hi Duong,

Please go through below link

https://github.com/RobinHerbots/Inputmask

Hope this will help :)

Thanks,

AV


yah, I got this. But I cann't find any solution on this. 



get dependency from TEXT ->(Server Action) Regex_Search


assign result as regex_result

i hope this help you.

Gokula Kannan wrote:


get dependency from TEXT ->(Server Action) Regex_Search


assign result as regex_result

i hope this help you.


this solution is really great. But I want use CustomMaskCurrency because some conveniences in this forge. 

Duong Nguyen wrote:

hi every one, need your help guys.


I want use MaskCurrency without using round up function.

Currently:

ex: 1.3598 => 1.36

I want to display: 1.3598 => 1.35 

I'm stucking here. Any one can help me. Thank you so much.


I want to know how you used with a little bit more information.. 

attachment of Screenshot will be more helpful,

Thanks

Hi Duong,

The component is use to mask values when the user is filling inputs. If you use it you can prevent users from adding more than 2 decimal when writing on inputs. If you already have decimals on your application with more than 2 decimal and you don't want to round it you will need to treat those values on server. Gokula showed you one way of treating those values.

Regards,

Marcelo