mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Added math/abs binding
This commit is contained in:
		| @@ -176,6 +176,11 @@ static const JanetReg math_cfuns[] = { | ||||
|         JDOC("(math/pow a x)\n\n" | ||||
|                 "Return a to the power of x.") | ||||
|     }, | ||||
|     { | ||||
|         "math/abs", janet_fabs, | ||||
|         JDOC("(math/abs x)\n\n" | ||||
|                 "Return the absolute value of x.") | ||||
|     }, | ||||
|     {NULL, NULL, NULL} | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 J.-F. Cap
					J.-F. Cap