Guest User

Untitled

a guest
Oct 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. set /a "hp = hp - ((atk*arandom)/((edef*6)/edefbonus))"
  2.  
  3. set /a "hp = 50 - ((2*2)/((1*6)/8))"
  4.  
  5. PS Y:> $hp = 50 - ((2*2)/((1*6)/8))
  6. PS Y:> $hp
  7. 44.6666666666667
  8.  
  9. set /a "hp = 50 - ((2*2)/((1*6)/8))"
  10.  
  11. SET Whole = Result / 100
  12. SET "Fraction = Result %% 100"
  13. SET Result=%Whole%.%Fraction%
  14.  
  15. 10*2*2*8 =320
  16. 1*6 =6
  17. 320/6 =53
  18. 53+5 =58
  19. 58/10 =5
  20.  
  21. 2*2*8 =32
  22. 1*6 =6
  23. 32/6 =5 (we just lost the fraction digit, so rounding won't work)
  24. 5*10 =50
  25. 50+5 =55
  26. 55/10 =5
Add Comment
Please, Sign In to add comment