diff index.html @ 11:1b8c5c3afaf5

Round up
author nanaya <me@myconan.net>
date Fri, 17 Jun 2016 10:36:02 +0900
parents bc14e1e8d046
children 13d740477326
line wrap: on
line diff
--- a/index.html	Sat May 14 22:40:00 2016 +0900
+++ b/index.html	Fri Jun 17 10:36:02 2016 +0900
@@ -113,7 +113,7 @@
       var x = input();
 
       $("#rate-text").text(rates.fixer.toLocaleString());
-      $("#result-bank").text((Math.round(x * 1.07 * rates.fixer / 1000) * 1000).toLocaleString());
+      $("#result-bank").text((Math.ceil(x * 1.07 * rates.fixer / 1000) * 1000).toLocaleString());
 
       if (rates.bni !== 0) {
         $("#rate-text-bni").text(rates.bni.toLocaleString());