Learn Python practically
and Get Certified.
Reference Materials
Learn Python Interactively
Try for FreeLearn Python practically
and Get Certified.
ENROLL FOR FREE!
Learn Python practically
and Get Certified.
Swift Double Methods
Swift provides various Double methods that are used to perform operations on numbers. For examplle, the isEqual()
method compares if one number is equal to another or not.
In this reference, you will find various double methods that are available in Swift.
Swift Double isEqual()
checks if one number is equal to another
Swift Double quotientAndRemainder()
calculates the quotient and remainder
Swift Double remainder()
computes the floating point remainder
Swift Double rounded()
rounds the specified value to the closest int
Swift Double abs()
returns the absolute value
Swift Double isLess()
checks if one number is less than another
Swift Double isLessThanOrEqualTo()
checks if number is less than or equal to another
Swift Double isMultiple()
checks if one number is multiple of another
Swift Double maximum()
returns the maximum of the two given values
Swift Double minimum()
returns the minimum of the two given values
Swift Double squareRoot()
returns the square root