frequency-unit

Crates.iofrequency-unit
lib.rsfrequency-unit
version0.2.3
sourcesrc
created_at2024-06-23 10:13:43.196378
updated_at2024-10-07 12:30:42.187591
descriptionA library for interacting with units of frequency.
homepagehttps://gitee.com/zr233/frequency-unit
repositoryhttps://gitee.com/zr233/frequency-unit
max_upload_size
id1281114
size8,554
周睿 (ZR233)

documentation

README

Frequency Unit

A library for interaction with units of frequency.

Example

let freq = Frequency::from_mhz(1.0);
let freq2 = Frequency::from_mhz(2.0);
let freq3 = freq + freq2;

let a: f64 = freq3.to_mhz();

assert_eq!(a, 3.0);


let freq = Frequency::from_mhz(12.3456789);

assert_eq!(format!("{:<10.2}", freq), "12.35     MHz");
Commit count: 0

cargo fmt