Documentation

This commit is contained in:
Alexey Milovidov 2024-11-10 15:14:17 +01:00
parent db98fb4c79
commit 1c85a0401f

View File

@ -5526,9 +5526,9 @@ Example of a loss of precision:
[example:precision]
)",
.examples{
{"typical", "SELECT toBFloat16OrZero('12.3');", "12.3125"}},
{"invalid1", "SELECT toBFloat16OrZero('abc');", "0"}},
{"invalid2", "SELECT toBFloat16OrZero(' 1');", "0"}},
{"typical", "SELECT toBFloat16OrZero('12.3');", "12.3125"},
{"invalid1", "SELECT toBFloat16OrZero('abc');", "0"},
{"invalid2", "SELECT toBFloat16OrZero(' 1');", "0"},
{"precision", "SELECT toBFloat16OrZero('12.3456789');", "12.375"}},
.categories{"Conversion"}});
@ -5579,9 +5579,9 @@ Example of a loss of precision:
[example:precision]
)",
.examples{
{"typical", "SELECT toBFloat16OrNull('12.3');", "12.3125"}},
{"invalid1", "SELECT toBFloat16OrNull('abc');", "NULL"}},
{"invalid2", "SELECT toBFloat16OrNull(' 1');", "NULL"}},
{"typical", "SELECT toBFloat16OrNull('12.3');", "12.3125"},
{"invalid1", "SELECT toBFloat16OrNull('abc');", "NULL"},
{"invalid2", "SELECT toBFloat16OrNull(' 1');", "NULL"},
{"precision", "SELECT toBFloat16OrNull('12.3456789');", "12.375"}},
.categories{"Conversion"}});