mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
15 lines
260 B
Go
15 lines
260 B
Go
//go:build dnum
|
|
|
|
package fixedpoint
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestDelta(t *testing.T) {
|
|
f1 := MustNewFromString("0.0009763593380614657")
|
|
f2 := NewFromInt(42300)
|
|
assert.InDelta(t, f1.Mul(f2).Float64(), 41.3, 1e-14)
|
|
}
|