toreal()
Converts the input expression to a value of type real.
The
todouble()
andtoreal()
functions are equivalent.
Note
When possible, use real literals instead.
Syntax
toreal(
Expr)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
value | scalar | ✔️ | The value to convert to real. |
Returns
If conversion is successful, the result is a value of type real
. Otherwise, the returned value will be real(null)
.
Example
toreal("123.4") == 123.4
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre