Documentation
¶
Index ¶
Constants ¶
View Source
const PenniesInDollar float64 = 100
PenniesInDollar represents that there are 100 pennies in a dollar
Variables ¶
This section is empty.
Functions ¶
func DollarsToPennies ¶
DollarsToPennies converts a floating point value in dollars to pennies. If `roundUp` is true any fractional value that is less than 1 penny will be rounded up and added as an additional penny. Otherwise, that value will be discarded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.