You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like [`IPv4StringToNum`](#IPv4StringToNum) but takes a string form of IPv4 address and returns value of [IPv4](../data-types/ipv4.md) type.
251
+
Converts a string or a UInt32 form of IPv4 address to [IPv4](../data-types/ipv4.md) type.
252
+
Similar to [`IPv4StringToNum`](#IPv4StringToNum) and [IPv4NumToString](#IPv4NumToString) functions but it supports both string and unsigned integer data types as input arguments.
Same as `toIPv4`, but if the IPv4 address has an invalid format, it returns `0.0.0.0` (0 IPv4), or the provided IPv4 default.
@@ -412,7 +428,7 @@ Result:
412
428
## toIPv6 {#toipv6}
413
429
414
430
Converts a string or a UInt128 form of IPv6 address to [IPv6](../data-types/ipv6.md) type. For strings, if the IPv6 address has an invalid format, returns an empty value.
415
-
Similar to [IPv6StringToNum](#ipv6stringtonum)function, which converts IPv6 address to binary format.
431
+
Similar to [IPv6StringToNum](#ipv6stringtonum)and [IPv6NumToString](#ipv6numtostringx) functions, which convert IPv6 address to and from binary format (i.e. `FixedString(16)`).
416
432
417
433
If the input string contains a valid IPv4 address, then the IPv6 equivalent of the IPv4 address is returned.
418
434
@@ -425,7 +441,7 @@ toIPv6(UInt128)
425
441
426
442
**Argument**
427
443
428
-
-`string` or `UInt128`— IP address. [String](../data-types/string.md).
444
+
-`x`— IP address. [`String`](../data-types/string.md) or [`UInt128`](../data-types/int-uint.md).
0 commit comments