is_number 0.1.1

Check if a string can be parsed as a number
Documentation
  • Coverage
  • 80%
    4 out of 5 items documented0 out of 3 items with examples
  • Size
  • Source code size: 5.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.16 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dotslashbit

Is Number

A Rust library to check if a string represents a valid number.

Usage

Add this to your Cargo.toml:

[dependencies]
is_number = "0.1.0"

Examples

use is_number::is_number;

fn main() {
assert!(is_number("123"));
assert!(is_number("-123.456"));
assert!(is_number("1.23e-5"));
}