Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery; Number to currency

Tags:

html

jquery

Im currently working on a little app and i need the following to happen;

The number 100000 should be changed to 100.000.

I tried toFixed(), but that just adds numbers and i tried a few other things without success. Anyone has an idea how to fix this?

like image 644
Nick Avatar asked Dec 02 '25 16:12

Nick


1 Answers

Try this:

(yourNumber / 1000).toFixed(3)
like image 101
tybro0103 Avatar answered Dec 04 '25 06:12

tybro0103



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!