We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var persianjs = require("persianjs") persianJs("1000000").digitsToWords().toString();
Expected result: یک میلیون Returned result: یک میلیون و هزار
The text was updated successfully, but these errors were encountered:
var persianjs = require("persianjs") persianJs("12000000").digitsToWords().toString();
Expected result: دوازده میلیون Returned result: دوازده میلیون و هزار
Sorry, something went wrong.
Quick fix:
persianJs(1000000).digitsToWords().toString().replace('دویصت', 'دویست').replace('و هزار', '')
There are 2 empty spaces between و to هزار
@mdehghani65 @sky93
Complete, accurate, and fast answer:
persianJs(12000000).digitsToWords().toString() .replace('دویصت', 'دویست') .replace('و هزار', '') .replace('و میلیون', '') .replace('و میلیارد', '') .replace('و تریلیون', '') .replace('و کوادریلیون', '') .replace('و کویینتیلیون', '')
Attention: There are 2 empty spaces between و to هزار
Thank you, dear Mahdi (@owlpro) @mdehghani65 @sky93
No branches or pull requests
Expected result: یک میلیون
Returned result: یک میلیون و هزار
The text was updated successfully, but these errors were encountered: