package
0.5.36
Repository: https://github.com/devlights/try-golang.git
Documentation: pkg.go.dev

# README

サンプルリスト

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

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

# Functions

NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。.
OrderOfComputation -- 浮動小数点は計算の順序によって結果が変わることのサンプルです.
RoundingError は、小数点計算において近似値が利用され丸め誤差が出るサンプルです。 # REFERENCES - https://engineering.mercari.com/blog/entry/20201203-basis-point/.
UsingDecimalPkg は、小数点計算を github.com/shopspring/decimal パッケージを利用して処理するサンプルです。 # REFERENCES - https://engineering.mercari.com/blog/entry/20201203-basis-point/ - https://github.com/shopspring/decimal # SEE ALSO - examples/basic/floatop/rounding_error.go.