Programming-Idioms

History of Idiom 86

Idiom #86 Check if integer multiplication will overflow

Write boolean function multiplyWillOverflow which takes two integers x, y and return true if (x*y) overflows.

#Edit dateEdit SummaryAuthor
👁 Δ 24 2020-05-21, 22:08 [D] DPaste has been down for a while ✝ programming-idioms.org
👁 Δ 23 2020-05-21, 20:16 [Go] Dead link programming-idioms.org
👁 Δ 22 2019-10-08, 14:34 [Csharp] wrong DantHimself
👁 Δ 21 2019-10-08, 14:34 New Csharp implementation by user [DantHimself] DantHimself
👁 Δ 20 2019-09-29, 11:23 New Fortran implementation by user [tkoenig] tkoenig
👁 Δ 19 2019-09-27, 23:34 New Perl implementation by user [daxim] daxim
👁 Δ 18 2019-02-01, 05:08 New Rust implementation by user [Debaran] Debaran
👁 Δ 17 2018-03-05, 16:05 [PHP] PROBLEM: this works only when $x and $y are positive. programming-idioms.org
👁 Δ 16 2018-03-05, 16:04 [Java] PROBLEM: this works only when x and y are positive. programming-idioms.org
👁 Δ 15 2017-04-13, 15:26 [Go] Variables names and func name programming-idioms.org
👁 Δ 14 2017-04-13, 15:25 [Ruby] Variables names programming-idioms.org
👁 Δ 13 2016-04-06, 20:29 New Ruby implementation by user [steenslag]
👁 Δ 12 2016-02-25, 21:05 New PHP implementation by user [agilla1]
👁 Δ 11 2016-02-21, 17:17 [Go] Comments: unsigned, multiplication performed.
👁 Δ 10 2016-02-21, 01:35 New Java implementation by user [dj]
👁 Δ 9 2016-02-18, 16:58 New Go implementation by user [Logiraptor]
👁 Δ 8 2016-02-17, 04:20 New Go implementation by user [Logiraptor]
👁 Δ 7 2016-02-07, 17:21 [Pascal] Comment emphasize
👁 Δ 6 2016-02-07, 16:58 New Pascal implementation by user [Bart]
👁 Δ 5 2015-11-30, 12:37
👁 Δ 4 2015-10-29, 14:05
👁 Δ 3 2015-09-10, 18:36
👁 Δ 2 2015-09-09, 21:27
1 2015-09-09, 21:27