Skip to content

Commit

Permalink
toCGFloat() 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
박길호(**2319) / App개발팀 iOS committed Jun 5, 2024
1 parent 7de7744 commit 19af2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PKHJsonParser/StringExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ extension String {
/// Converts String to CGFloat
public func toCGFloat() -> CGFloat {
if let num = NumberFormatter().number(from: self) {
return CGFloat(num.floatValue)
return CGFloat(num.doubleValue)
}
else {
return 0
Expand Down

0 comments on commit 19af2a5

Please sign in to comment.