Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Div ¶
Div returns dividend/divisor. Returns 0 and one of the following errors in the following cases:
- If divisor is zero, returns an error that you can check with IsDivByZeroErr
- If divisor is one, returns an error that you can check with IsDivByOneErr
- If divisor > dividend, returns an error that you can check with IsDivisorGTDividendErr
func IsDivByOneErr ¶
IsDivByOneErr returns true if e is a divide by one error
func IsDivByZeroErr ¶
IsDivByZeroErr returns true if e is a divide by zero error
func IsDivisorGTDividendErr ¶
IsDivisorGTDividendErr returns true if e is a divisor > dividend error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.