Mirror of
forum.nim-lang.org
index
1474 :: Math library missing absolute value?
[2015-07-26T16:41:56+02:00]
View Orginal
xyz32
(orginal)
[2015-07-26T16:41:56+02:00]
view original
Is the nim standard math library missing an abs value? I only did a quick search and I could not find one.
dom96
(orginal)
[2015-07-26T16:45:39+02:00]
view original
http://nim-lang.org/docs/system.html#abs,int
xyz32
(orginal)
[2015-07-26T16:51:06+02:00]
view original
Right :) Thank you, but is there a reason why this one is in system and all the other (Floor, Round, Sealing etc) are in the math module?
Araq
(orginal)
[2015-07-26T23:56:26+02:00]
view original
No reason besides historical reasons.
didlybom
(orginal)
[2015-07-27T10:19:47+02:00]
view original
Maybe this is a dumb suggestion, but could it make sense to add an alias for system.abs to the math module? Maybe even make the system one the alias, and the math one the original one?