github.com/condensat/bank-core@v0.1.0/database/model/utils.go (about) 1 // Copyright 2020 Condensat Tech. All rights reserved. 2 // Use of this source code is governed by a MIT 3 // license that can be found in the LICENSE file. 4 5 package model 6 7 import ( 8 "github.com/condensat/bank-core/database" 9 "github.com/condensat/bank-core/database/utils" 10 ) 11 12 func ToFixedFloat(value Float) Float { 13 fixed := utils.ToFixed(float64(value), database.DatabaseFloatingPrecision) 14 return Float(fixed) 15 }