// FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'eo_001'
FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'eo_001'
// FmtCurrency returns the currency representation of ' num ' with digits / precision of ' v ' for ' eo_001 '
func (eo *eo_001) FmtCurrency(num float64, v uint64, currency currency.Type) string {
	s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
	symbol := eo.currencies[currency]
	l := len(s) + len(symbol) + 7
	b := make([]byte, 0, l)
	for i := len(s) - 1; i >= 0; i-- {
		if s[i] == '.' {
			b = append(b, eo.decimal[0])
			continue
		}
		b = append(b, s[i])
	}
	for j := len(symbol) - 1; j >= 0; j-- {
		b = append(b, symbol[j])
	}
	for j := len(eo.currencyPositivePrefix) - 1; j >= 0; j-- {
		b = append(b, eo.currencyPositivePrefix[j])
	}
	if num < 0 {
		for j := len(eo.minus) - 1; j >= 0; j-- {
			b = append(b, eo.minus[j])
		}
	}
	for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
		b[i], b[j] = b[j], b[i]
	}
	b = append(b, eo.currencyPositiveSuffix...)
	return string(b)
}
func ( eo * eo_001 ) FmtCurrency ( num float64 , v uint64 , currency currency . Type ) string { s := strconv . FormatFloat ( math . Abs ( num ) , 'f' , int ( v ) , 64 ) symbol := eo . currencies [ currency ] l := len ( s ) + len ( symbol ) + 7 b := make ( [ ] byte , 0 , l ) for i := len ( s ) - 1 ; i >= 0 ; i -- { if s [ i ] == '.' { b = append ( b , eo . decimal [ 0 ] ) continue } b = append ( b , s [ i ] ) } for j := len ( symbol ) - 1 ; j >= 0 ; j -- { b = append ( b , symbol [ j ] ) } for j := len ( eo . currencyPositivePrefix ) - 1 ; j >= 0 ; j -- { b = append ( b , eo . currencyPositivePrefix [ j ] ) } if num < 0 { for j := len ( eo . minus ) - 1 ; j >= 0 ; j -- { b = append ( b , eo . minus [ j ] ) } } for i , j := 0 , len ( b ) - 1 ; i < j ; i , j = i + 1 , j - 1 { b [ i ] , b [ j ] = b [ j ] , b [ i ] } b = append ( b , eo . currencyPositiveSuffix ... ) return string ( b ) }
FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'eo_001'
FmtCurrency returns the currency representation of ' num ' with digits / precision of ' v ' for ' eo_001 '
// reverse