ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ???????????????????????????????????? ???????????????????????????????????? ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ???????????????????????????????????? ???????????????????????????????????? --- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns an array containing the quotient and modulus obtained by dividing num by aNumeric. If q, r = x.divmod(y), then - !ruby/struct:SM::Flow::VERB body: " q = floor(float(x)/float(y))\n x = q*y + r\n" - !ruby/struct:SM::Flow::P body: "The quotient is rounded toward -infinity, as shown in the following table:" - !ruby/struct:SM::Flow::VERB body: " a | b | a.divmod(b) | a/b | a.modulo(b) | a.remainder(b)\n ------+-----+---------------+---------+-------------+---------------\n 13 | 4 | 3, 1 | 3 | 1 | 1\n ------+-----+---------------+---------+-------------+---------------\n 13 | -4 | -4, -3 | -3 | -3 | 1\n ------+-----+---------------+---------+-------------+---------------\n -13 | 4 | -4, 3 | -4 | 3 | -1\n ------+-----+---------------+---------+-------------+---------------\n -13 | -4 | 3, -1 | 3 | -1 | -1\n ------+-----+---------------+---------+-------------+---------------\n 11.5 | 4 | 2, 3.5 | 2.875 | 3.5 | 3.5\n ------+-----+---------------+---------+-------------+---------------\n 11.5 | -4 | -3, -0.5 | -2.875 | -0.5 | 3.5\n ------+-----+---------------+---------+-------------+---------------\n -11.5 | 4 | -3, 0.5 | -2.875 | 0.5 | -3.5\n ------+-----+---------------+---------+-------------+---------------\n -11.5 | -4 | 2 -3.5 | 2.875 | -3.5 | -3.5\n" - !ruby/struct:SM::Flow::P body: Examples - !ruby/struct:SM::Flow::VERB body: " 11.divmod(3) #=> [3, 2]\n 11.divmod(-3) #=> [-4, -1]\n 11.divmod(3.5) #=> [3, 0.5]\n (-11).divmod(3.5) #=> [-4, 3.0]\n (11.5).divmod(3.5) #=> [3, 1.0]\n" full_name: Numeric#divmod is_singleton: false name: divmod params: | num.divmod( aNumeric ) -> anArray visibility: public