Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string r(string s){
- if (s.find(',') == s.npos){
- s += ".0";
- }
- else{
- s = s.substr(0, s.find(',')) + '.' + s.substr(s.find(',') + 1, s.size());
- }
- return s;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement