v-money icon indicating copy to clipboard operation
v-money copied to clipboard

v-money directive not displaying decimals properly

Open npulukuri opened this issue 6 years ago • 3 comments

Hi, I am using v-money directive. I kept the precision as 2. When the value is 16000, It is displaying as 160.00. It is working fine for the values that has already decimals. For example 15200.48 is fine. If I key precision as 0, 16000 is displayed properly but 15200.48 is displayed as 1520048. Is there any way to take care of the value that do not have decimal values. I want the output for 16000 as 16000.00

Thanks, Narsi

npulukuri avatar Sep 24 '18 14:09 npulukuri

I have the same issue with binding...

WesleyF avatar Oct 12 '18 16:10 WesleyF

Same issue. Here's a JSFiddle demonstrating the issue: https://jsfiddle.net/nj3cLoum/1892/

tfolk avatar Nov 19 '18 14:11 tfolk

Change the value to string (with dot). "16000.00". In your database use the column as decimal(16,2), not double

gustavoborges25 avatar Feb 06 '19 12:02 gustavoborges25