Skip to content

Commit 04924ab

Browse files
author
Eric Wu
committed
简化代码
1 parent 544a18a commit 04924ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CRBoostSwift/Classes/Foundation+CRBoost.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ extension String {
265265
}
266266

267267
public var floatValue: Float {
268-
return Float(self) ?? 0
268+
return Float(doubleValue)
269269
}
270270

271271
public var intValue: Int {

0 commit comments

Comments
 (0)