Created
January 22, 2020 16:27
-
-
Save ferdhika31/ae6aad5f9387a85b7e4ea695c0baa63b to your computer and use it in GitHub Desktop.
dude
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
var kelipatan = 500 | |
var angka = 12600 | |
var hasil = Math.round(angka / kelipatan) * kelipatan; | |
if(hasil < angka){ | |
hasil += kelipatan; | |
} | |
alert(hasil); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment