Advertisement
Sanlover

Untitled

Dec 22nd, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1.  
  2. Money::Money(const string &_Balance) {
  3. string result = _Balance;
  4. if (result.substr(result.find('.') + 1).size() > 2)
  5. result.erase(result.find('.') + 3);
  6. balance = Fraction(result);
  7. }
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement