Math

Overview

Helper static class that provides access to a common mathematical functions.

Location

  • Reference: Sugar
  • Namespace: Sugar

Class Methods


Round

Rounds a value rounded to the nearest integral value.

 

class method Round(a: Double): Int64

 

static Int64 Round(Double a)

 

static func Round(_ a: Double) -> Int64

 

static Int64 Round(Double a)

 

Shared Function Round(a As Double) As Int64

Parameters:

  • a: A value to round.