Skip to content

Double 双精度

声明

swift
var a = 10.0
var b: Double = 20.0
var c = Double(2)

随机数

10-100 随机数

swift
print(Double.random(in: 10.0...100.0))