Help us shape the future of Go! Take the 2026 Go Developer Survey

dinheiro

package module
v0.0.0-...-791c731 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2016 License: MIT Imports: 3 Imported by: 0

README

dinheiro

Converte um valor monetário (em Real) por extenso

[en]: Returns the Real (the present-day currency of Brazil) into words. The return will be in Portuguese.

Circle CI Build Status Coverage Status GoDoc

Usage

RealPorExtenso
value := 1.99
valueIntoWords, _ := RealPorExtenso(value)
// valueIntoWords = "um real e noventa e nove centavos"
Using the Real type
real := Real(1.99)
realIntoWords, _ := real.PorExtenso()
// realIntoWords = "um real e noventa e nove centavos"

License

This software is open source, licensed under the The MIT License (MIT). See LICENSE for details.

Documentation

Overview

Package dinheiro Converte um valor monetário (em Real) por extenso en: Returns the Real Currency (the present-day currency of Brazil) into words

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RealPorExtenso

func RealPorExtenso(value float64) (string, error)

RealPorExtenso Retorna um valor em Real por extenso [en: Returns a value (Real Currency as float64) into words]

Types

type Real

type Real float64

Real é a moeda corrente no Brasil [en: Real is the present-day currency of Brazil]

func (Real) PorExtenso

func (real Real) PorExtenso() (string, error)

PorExtenso Retorna o valor por extenso [en: Returns the value into words]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL