目录

toDouble

此方法返回数字值的双重表示。

语法 (Syntax)

Number.toDouble()

返回值 (Return Value)

返回表示指定Number对象的double

例子 (Example)

void main() { 
   int n1 = 2; 
   var value = n1.toDouble(); 
   print("Output = ${value}"); 
} 

它将产生以下output - 。

Output = 2.0
↑回到顶部↑
WIKI教程 @2018