picfloat

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: MIT Imports: 2 Imported by: 2

README

picfloat

license

Go (golang) picture formats for float64

Example:

	##,###0.000

Will return a string with 3 decimal places. The comma will be added if the value is larger than 1000.

Documentation

Overview

Copyright (C) Philip Schlump, 2014.

Implementation of Picture format for floating point numbers

##,###,##0.000

format with commas and 0.

Index

Constants

View Source
const (
	Version = "0.4.0"
)

Variables

This section is empty.

Functions

func Format

func Format(format string, value float64) string

func PadStr

func PadStr(l int, w string, s string) string

func PadStr2

func PadStr2(n int, s string) (r string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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