Created
June 9, 2014 12:31
-
-
Save mizutanikirin/231aa0a0807c7bc22875 to your computer and use it in GitHub Desktop.
四捨五入 / 切り下げ / 切り上げ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//四捨五入 | |
Math.round(2.1); | |
// 切り下げ | |
Math.floor(2.1); | |
// 切り上げ | |
Math.ceil(2.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment