Declaration
func Abs(value Number) Number
go
Parameters
Input
Name | Type | Description |
---|---|---|
Value | Number | The value whose absolute value is required |
Return
Type | Description |
---|---|
Number | The result of taking the absolute value |
Get the absolute value, support integers and decimals
func Abs(value Number) Number
go
Name | Type | Description |
---|---|---|
Value | Number | The value whose absolute value is required |
Type | Description |
---|---|
Number | The result of taking the absolute value |