Documentation ¶
Index ¶
- Variables
- func Add(x resource.Quantity, y resource.Quantity) resource.Quantity
- func Div(x resource.Quantity, y resource.Quantity, scale inf.Scale, rounder inf.Rounder) resource.Quantity
- func DivFloat64(x resource.Quantity, y float64, scale inf.Scale, rounder inf.Rounder) (resource.Quantity, error)
- func Max(x resource.Quantity, y resource.Quantity) resource.Quantity
- func Min(x resource.Quantity, y resource.Quantity) resource.Quantity
- func Mul(x resource.Quantity, y resource.Quantity) resource.Quantity
- func MulFloat64(x resource.Quantity, y float64) (resource.Quantity, error)
- func RoundBinarySI(q resource.Quantity, rounder inf.Rounder) resource.Quantity
- func Sub(x resource.Quantity, y resource.Quantity) resource.Quantity
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Div ¶
func Div(x resource.Quantity, y resource.Quantity, scale inf.Scale, rounder inf.Rounder) resource.Quantity
Returns x/y rounded to the specified scale. Note that inf.Scale is inverted. -2 means 100, 2 means 0.01.
func DivFloat64 ¶
func RoundBinarySI ¶ added in v0.1.4
Rounds input q to the nearest BinarySI representation Mi/Ki.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.