Skip to content

[SR-443] CGFloats parsed from string do not round trip #4181

Closed
@lhoward

Description

@lhoward
Previous ID SR-443
Radar None
Original Reporter @lhoward
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @spevans
Priority Medium

md5: 194c1ac7ca461fcc40bb81483d2a489b

Issue Description:

 let point1 = NSPointFromString("{1.0, 1.2234234234}")
 let point2 = NSPoint(x: CGFloat(1.0), y: CGFloat(1.2234234234))

    print("\(point1) \(point2) \(point1 == point2)")

prints:

{1.0, 1.2234234234} {1.0, 1.2234234234} false

Expected result is true.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions