Skip to content

Panic when allocating to big numbers #77

@jacanales

Description

@jacanales

When trying to allocate an amount to a big amount net, it results on a panic error.

How to reproduce:

Link: https://play.golang.org/p/lZaEXY0Jaqg

package main

import (
	"github.com/Rhymond/go-money"
)

func main() {	
	net := money.New(2911127909321522, "EUR")
	net.Allocate(30000)
}

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