Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function scaledown_rai (amount, ratio) {
  2.     if (amount.length <= ratio.length)
  3.         return "0";
  4.     else
  5.         return amount.substr (0, amount.length - ratio.length)
  6. }
  7.  
  8. function scaleup_rai (amount, ratio) {
  9.     return amount.concat (ratio)
  10. }
  11.  
  12. display (scaledown_rai (account_balance (account), Mrai));
  13. send (scaleup_rai (user_input, Mrai))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement