Google

Go to the first, previous, next, last section, table of contents.


idiv, irem

idiv(i1,i2)
:: À°¿ô½ü»»¤Ë¤è¤ë¾¦.
irem(i1,i2)
:: À°¿ô½ü»»¤Ë¤è¤ë¾ê;.
return
À°¿ô
i1,i2
À°¿ô
  • i1 ¤Î i2 ¤Ë¤è¤ëÀ°¿ô½ü»»¤Ë¤è¤ë¾¦, ¾ê;¤òµá¤á¤ë.
  • i2 ¤Ï 0 ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤.
  • Èï½ü¿ô¤¬Éé¤Î¾ì¹ç, ÀäÂÐÃͤËÂФ¹¤ëÃͤ˥ޥ¤¥Ê¥¹¤ò¤Ä¤±¤¿ÃͤòÊÖ¤¹.
  • i1 % i2 ¤Ï, ·ë²Ì¤¬Àµ¤ËÀµµ¬²½¤µ¤ì¤ë¤³¤È¤ò½ü¤±¤Ð irem() ¤ÎÂå¤ï¤ê¤ËÍѤ¤¤ë¤³¤È¤¬¤Ç¤­¤ë.
  • ¿¹à¼°¤Î¾ì¹ç¤Ï sdiv, srem ¤òÍѤ¤¤ë.
[0] idiv(100,7);
14
[0] idiv(-100,7);
-14
[1] irem(100,7);
2
[1] irem(-100,7);
-2
»²¾È
section sdiv, sdivm, srem, sremm, sqr, sqrm, section %.


Go to the first, previous, next, last section, table of contents.