mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
many warnings cleaned up
This commit is contained in:
@@ -461,7 +461,7 @@ fn encodeDecodeWithAll(
|
||||
|
||||
fn getEndIndex(length: u32, chars: &[char]) -> u32 {
|
||||
let decimalLength: f64 = (chars.len() as f64).log10(); //Math.log10(chars.length);
|
||||
10_f64.powf((decimalLength * length as f64)).ceil() as u32
|
||||
10_f64.powf(decimalLength * length as f64).ceil() as u32
|
||||
// (decimalLength*length as f64).powi(10).ceil() as u32
|
||||
// (decimalLength*length as f64).powi(10).ceil() as u32
|
||||
// Math.ceil(Math.pow(10, decimalLength * length))
|
||||
|
||||
Reference in New Issue
Block a user