Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift truncate a float

let formatted = String(format: "Angle: %.2f", angle)
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #swift #truncate #float
ADD COMMENT
Topic
Name
3+3 =