diff options
Diffstat (limited to 'docs/content/functions/conv.md')
| -rw-r--r-- | docs/content/functions/conv.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/content/functions/conv.md b/docs/content/functions/conv.md index 21941477..bf4ccc71 100644 --- a/docs/content/functions/conv.md +++ b/docs/content/functions/conv.md @@ -454,7 +454,7 @@ Converts the input to an `int64` (64-bit signed integer). This function attempts to convert most types of input (strings, numbers, and booleans). -Unconvertable inputs will result in errors. +Unconvertible inputs will result in errors. Floating-point numbers (with decimal points) are truncated. @@ -493,7 +493,7 @@ on platform). This is similar to [`conv.ToInt64`](#convtoint64) on 64-bit platforms, but is useful when input to another function must be provided as an `int`. -Unconvertable inputs will result in errors. +Unconvertible inputs will result in errors. On 32-bit systems, given a number that is too large to fit in an `int`, the result is `-1`. This is done to protect against @@ -534,7 +534,7 @@ $ gomplate -i '{{conv.ToInt true }}' Converts the inputs to an array of `int64`s. -Unconvertable inputs will result in errors. +Unconvertible inputs will result in errors. This delegates to [`conv.ToInt64`](#convtoint64) for each input argument. @@ -562,7 +562,7 @@ gomplate -i '{{ conv.ToInt64s true 0x42 "123,456.99" "1.2345e+3"}}' Converts the inputs to an array of `int`s. -Unconvertable inputs will result in errors. +Unconvertible inputs will result in errors. This delegates to [`conv.ToInt`](#convtoint) for each input argument. @@ -593,7 +593,7 @@ Converts the input to a `float64`. This function attempts to convert most types of input (strings, numbers, and booleans). -Unconvertable inputs will result in errors. +Unconvertible inputs will result in errors. _Added in gomplate [v2.2.0](https://github.com/hairyhenderson/gomplate/releases/tag/v2.2.0)_ ### Usage @@ -621,7 +621,7 @@ $ gomplate -i '{{ conv.ToFloat64 "9,000.09"}}' Converts the inputs to an array of `float64`s. -Unconvertable inputs will result in errors. +Unconvertible inputs will result in errors. This delegates to [`conv.ToFloat64`](#convtofloat64) for each input argument. |
