How change int to format money ,I use Angular,any idea? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
i need set format money in input tag type number,i have an int 2000555 and need show that in the format 2.000.555,53.I use Angular,any idea?

You'd normally use the currency pipe for this:
https://angular.io/api/common/CurrencyPipe

Related

Write a function to format prices [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
I'm getting price from API: 0.00000000009533
Need to write a js function to make it look like this: $0.0₉9533 when the number of 0's in decimal part is over 9.
Is there any way using javascript and css to lower numbers like this ₉? What is the proper way to write this?

I need to extract the data from the title which is in a string [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I want to take the data from the title in string
so how can I take the data that's string and take the string that's in the title
data: "[{\"_id\":\"63aada6d081cf22ce63a5c46\",\"title\":\"Hamko 1000VA Pure Sine Wave Home IPS \"
Something like :
data.split("title")[1]

Can I make $date = date("Y-m-d h:i:sa"); to a int value so that I can compare it to present date? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Example I have a date "2021-04-14 02:26:05am" and I want to select data that inserted after that date. Hope someone can answer my question.
use strotime("2021-04-14 02:26:05am")

How can I convert BigInt to float in js? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Lets say I have a BigInt(66555444333222111) and I want to convert it to float loke the output will be 6.6555444E9.
You can use the following example:
console.log( Number( BigInt('66555444333222111') ).toExponential() )

Change javascript output locale [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Im in trouble with this javascript. Im not good with this language, so i thought, maby you can help me with it. This script changes value of the input which id end_date. But when it chages it prints in eng locale, i need to change it to lt. Like this: setlocale(LC_ALL, '$AppUI->user_lang.UTF-8'); Help pls.
f.task_end_date.value = e.getUTCFullYear()+tz2+(e.getMonth()+1)+tz1+e.getDate();
var url = '?m=public&a=date_format&dialog=1&field='+f.name+'.end_date&date=' + f.task_end_date.value;
You can use Moment.js to parse/format the date to the format that you need: http://momentjs.com/

Categories