Skip to content

Implement Parts as well #43

Description

@nghtstr

This should be another simple helper function that can be incredibly useful.

func Parts(num Decimal) (whole, dec Decimal) {
	return num.Trunc(0), num.Abs().Sub(num.Trunc(0).Abs())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions