Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.
/ assert-be-close-rs Public archive

Rust crate for comparing decimals with arbitrary precision.(任意の精度で小数を比較するためのrustクレート)

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

azishio/assert-be-close-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assert-be-close-rs

This crate has been moved to close-to-rs.

このクレートはclose-to-rsに移動しました。

Provides functions to verify the equivalence of floating-point numbers at arbitrary precision.

任意の精度で浮動小数点数の等価性を検証するための関数を提供します。

インポート

use assert_be_close_rs::{assert_be_close, assert_not_close};

使い方

Check for equivalence with arbitrary precision.

任意の精度で等価であることを確認。

assert_be_close(1.0, 1.0001, 3);
assert_be_close(1.0, 1.0001, 4); // panic

Check for non-equivalence with arbitrary precision.

任意の精度で等価でないことを確認。

assert_not_close(1.0, 1.0001, 4);
assert_not_close(1.0, 1.0001, 3); // panic

ライセンス

Licensed under either of

at your option.

(The English in the README and comments in the source code were translated by DeepL.)

About

Rust crate for comparing decimals with arbitrary precision.(任意の精度で小数を比較するためのrustクレート)

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages