Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Money::Money(const string &_Balance) {
- string result = _Balance;
- if (result.substr(result.find('.') + 1).size() > 2)
- result.erase(result.find('.') + 3);
- balance = Fraction(result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement