dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit d0dbb6c9972a656a79f33e7d02fcb61ae99dbf69
parent 96dc90e77228fa8aa0d827061049ceb49dcbdfcb
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 13 Dec 2023 22:21:05 -0500

format piconero to xmr string

Diffstat:
Mpkg/database/tablePokerTables.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/pkg/database/tablePokerTables.go b/pkg/database/tablePokerTables.go @@ -1,6 +1,7 @@ package database import ( + "fmt" "github.com/sirupsen/logrus" ) @@ -30,6 +31,10 @@ func (p Piconero) ToPokerChip() PokerChip { return PokerChip(p / 10_000_000) } +func (p Piconero) XmrStr() string { + return fmt.Sprintf("%.12f", float64(p)/1_000_000_000_000) +} + type PokerChip uint64 func (p PokerChip) ToPiconero() Piconero {