All Projects → rust-num → Num

rust-num / Num

Licence: other
A collection of numeric types and traits for Rust.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Num

track-who
Laravel Traits for tracking who's done what to your models
Stars: ✭ 29 (-95.1%)
Mutual labels:  trait
yii2-number
A number format mask control and input for Yii2 Framework
Stars: ✭ 22 (-96.28%)
Mutual labels:  number
Laravel Model Settings
Model Settings for your Laravel app
Stars: ✭ 409 (-30.91%)
Mutual labels:  trait
react-numeric
A react component for formatted number form fields
Stars: ✭ 30 (-94.93%)
Mutual labels:  number
php-traits
A collection of (more or less) useful traits for PHP7.2+
Stars: ✭ 17 (-97.13%)
Mutual labels:  trait
Telephone number
Phone number validation for Ruby
Stars: ✭ 262 (-55.74%)
Mutual labels:  number
Pathslider
Numerical slider that follows a Bezier path
Stars: ✭ 15 (-97.47%)
Mutual labels:  number
Mixin
Mixin is a trait/mixin and bytecode weaving framework for Java using ASM
Stars: ✭ 557 (-5.91%)
Mutual labels:  trait
number-to-words
convert number into words (english, french, italian, roman, spanish, portuguese, belgium, dutch, swedish, polish, russian, iranian, roman, aegean)
Stars: ✭ 53 (-91.05%)
Mutual labels:  number
Vue Phone Number Input
A phone number input made with Vue JS (format & valid phone number)
Stars: ✭ 407 (-31.25%)
Mutual labels:  number
yii2-db
Database extensions for Yii 2.0 Framework 📦
Stars: ✭ 19 (-96.79%)
Mutual labels:  trait
is-safe-integer
ES2015 Number.isSafeInteger() ponyfill
Stars: ✭ 16 (-97.3%)
Mutual labels:  number
Efcountinglabel
Adds animated counting support to UILabel.
Stars: ✭ 311 (-47.47%)
Mutual labels:  number
userstamps
A simple package to insert and load userstamps for a model automatically, it provides an eloquent trait to use in models..
Stars: ✭ 34 (-94.26%)
Mutual labels:  trait
React Phone Input 2
📞 Highly customizable phone input component with auto formatting
Stars: ✭ 446 (-24.66%)
Mutual labels:  number
FSAnimatedTextView
Animated Number Text View Library
Stars: ✭ 32 (-94.59%)
Mutual labels:  number
rememberable
Laravel Traits for fast integration of model caching
Stars: ✭ 28 (-95.27%)
Mutual labels:  trait
Laravel Ban
Laravel Ban simplify blocking and banning Eloquent models.
Stars: ✭ 572 (-3.38%)
Mutual labels:  trait
Rollingtext
Android TextView with rolling animation
Stars: ✭ 494 (-16.55%)
Mutual labels:  number
React Native Phone Verification
The best React Native example for phone verification (an alternative to Twitter Digits).
Stars: ✭ 332 (-43.92%)
Mutual labels:  number

num

crate documentation minimum rustc 1.31 build status

A collection of numeric types and traits for Rust.

This includes new types for big integers, rationals (aka fractions), and complex numbers, new traits for generic programming on numeric properties like Integer, and generic range iterators.

num is a meta-crate, re-exporting items from these sub-crates:

Repository Crate Documentation
num-bigint crate documentation
num-complex crate documentation
num-integer crate documentation
num-iter crate documentation
num-rational crate documentation
num-traits crate documentation
(num-derive) crate documentation

Note: num-derive is listed here for reference, but it's not directly included in num. This is a proc-macro crate for deriving some of num's traits.

Usage

Add this to your Cargo.toml:

[dependencies]
num = "0.4"

Features

This crate can be used without the standard library (#![no_std]) by disabling the default std feature. Use this in Cargo.toml:

[dependencies.num]
version = "0.4"
default-features = false

The num-bigint crate requires the std feature, or the alloc feature may be used instead with Rust 1.36 and later. Other sub-crates may also have limited functionality when used without std.

The libm feature uses pure-Rust floating point implementations in no_std builds, enabling the Float trait and related Complex methods.

The rand feature enables randomization traits in num-bigint and num-complex.

The serde feature enables serialization for types in num-bigint, num-complex, and num-rational.

The num meta-crate no longer supports features to toggle the inclusion of the individual sub-crates. If you need such control, you are recommended to directly depend on your required crates instead.

Releases

Release notes are available in RELEASES.md.

Compatibility

The num crate as a whole is tested for rustc 1.31 and greater.

The num-traits, num-integer, and num-iter crates are individually tested for rustc 1.8 and greater, if you require such older compatibility.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].