Double.From
Syntax
Double.From(value as any, optional culture as nullable text) as nullable number
About
Returns a Double number
value from the given value
. If the given value
is null
, Double.From returns null
. If the given value
is number
within the range of Double, value
is returned, otherwise an error is returned. If value
is of any other type, it will first be converted to a number
using Number.FromText. An optional culture
may also be provided (for example, "en-US").
Example 1
Get the Double number
value of "4"
.
Usage
Double.From("4.5")
Output
4.5
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho