Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

abs swift

let x = Int8.min
// x == -128
let y = abs(x)
// Overflow error
Source by developer.apple.com #
 
PREVIOUS NEXT
Tagged: #abs #swift
ADD COMMENT
Topic
Name
7+1 =