1Builtins.abs(3kaya) Kaya module reference Builtins.abs(3kaya)
2
3
4
6 Builtins::abs - Return the magnitude of an integer.
7
9 Int abs( Int x )
10
12 x The integer to find the magnitude of
13
15 Return the magnitude of an integer.
16
17
18 a = abs(5); // 5
19 a = abs(-3); // 3
20
22 Kaya standard library by Edwin Brady, Chris Morris and others
23 (kaya@kayalang.org). For further information see http://kayalang.org/
24
26 The Kaya standard library is free software; you can redistribute it
27 and/or modify it under the terms of the GNU Lesser General Public
28 License (version 2.1 or any later version) as published by the Free
29 Software Foundation.
30
31
32
33Kaya December 2010 Builtins.abs(3kaya)