floatop

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 5 Imported by: 0

README

サンプルリスト

このディレクトリには以下のサンプルがあります。

file example name note
order_of_computation.go floatop_order_of_computation 浮動小数点は計算の順序によって結果が変わることのサンプルです
rounding_error.go floatop_rounding_error 小数点計算において近似値が利用され丸め誤差が出るサンプルです
using_decimal_pkg.go floatop_using_decimal_pkg 小数点計算を github.com/shopspring/decimal パッケージを利用して処理するサンプルです

Documentation

Overview

Package floatop -- 浮動小数点の計算に関するサンプルが配置されているパッケージです。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegister

func NewRegister() mapping.Register

NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。

func RoundingError added in v0.5.6

func RoundingError() error

RoundingError は、小数点計算において近似値が利用され丸め誤差が出るサンプルです。

REFERENCES

func UsingDecimalPkg added in v0.5.6

func UsingDecimalPkg() error

UsingDecimalPkg は、小数点計算を github.com/shopspring/decimal パッケージを利用して処理するサンプルです。

REFERENCES

SEE ALSO

  • examples/basic/floatop/rounding_error.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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