Subtracts the second number from the first (can be in Bangla or English digits).
First number (Bangla or English digits).
Second number (Bangla or English digits).
If true, returns the result in English digits. Default is false (returns Bangla digits).
The difference between a and b.
a
b
subtract("১০", "২"); // returns "৮"subtract(10, 2, true); // returns "8"subtract("২০", "৫", true); // returns "15"subtract("১০০", "৫০"); // returns "৫০" Copy
subtract("১০", "২"); // returns "৮"subtract(10, 2, true); // returns "8"subtract("২০", "৫", true); // returns "15"subtract("১০০", "৫০"); // returns "৫০"
If the input is invalid or not a number.
Subtracts the second number from the first (can be in Bangla or English digits).