Categorygithub.com/pefish/go-decimal
modulepackage
0.4.5
Repository: https://github.com/pefish/go-decimal.git
Documentation: pkg.go.dev

# README

go-decimal

Description

decimal tools

Test

func TestDecimalClass_Lt(t *testing.T) {
	if Decimal.Start(`12`).Lt(10) {
		t.Error()
	}
}

func TestDecimalClass_AbsForString(t *testing.T) {
	if Decimal.Start(`-1`).AbsForString() != `1` {
		t.Error()
	}
}

func TestDecimalClass_AddForString(t *testing.T) {
	if Decimal.Start(`-1`).AddForString(1) != `0` {
		t.Error()
	}
}

func TestDecimalClass_SubForString(t *testing.T) {
	if Decimal.Start(`-1`).SubForString(1) != `-2` {
		t.Error(Decimal.Start(`-1`).SubForString(1))
	}
}

# Packages

Multiprecision decimal numbers.

# Variables

No description provided by the author

# Structs

No description provided by the author