#[unstable(feature = "std_misc", reason = "may be removed or relocated")]
pub fn to_string(num: f32) -> String {
let (r, _) = strconv::float_to_str_common(
- num, 10u, true, SignNeg, DigAll, ExpNone, false);
+ num, 10, true, SignNeg, DigAll, ExpNone, false);
r
}
#[unstable(feature = "std_misc", reason = "may be removed or relocated")]
pub fn to_str_hex(num: f32) -> String {
let (r, _) = strconv::float_to_str_common(
- num, 16u, true, SignNeg, DigAll, ExpNone, false);
+ num, 16, true, SignNeg, DigAll, ExpNone, false);
r
}
/// * radix - The base to use
#[inline]
#[unstable(feature = "std_misc", reason = "may be removed or relocated")]
-pub fn to_str_radix_special(num: f32, rdx: uint) -> (String, bool) {
+pub fn to_str_radix_special(num: f32, rdx: u32) -> (String, bool) {
strconv::float_to_str_common(num, rdx, true, SignNeg, DigAll, ExpNone, false)
}
#[unstable(feature = "std_misc", reason = "may be removed or relocated")]
pub fn to_str_exact(num: f32, dig: uint) -> String {
let (r, _) = strconv::float_to_str_common(
- num, 10u, true, SignNeg, DigExact(dig), ExpNone, false);
+ num, 10, true, SignNeg, DigExact(dig), ExpNone, false);
r
}
#[unstable(feature = "std_misc", reason = "may be removed or relocated")]
pub fn to_str_digits(num: f32, dig: uint) -> String {
let (r, _) = strconv::float_to_str_common(
- num, 10u, true, SignNeg, DigMax(dig), ExpNone, false);
+ num, 10, true, SignNeg, DigMax(dig), ExpNone, false);
r
}
#[unstable(feature = "std_misc", reason = "may be removed or relocated")]
pub fn to_str_exp_exact(num: f32, dig: uint, upper: bool) -> String {
let (r, _) = strconv::float_to_str_common(
- num, 10u, true, SignNeg, DigExact(dig), ExpDec, upper);
+ num, 10, true, SignNeg, DigExact(dig), ExpDec, upper);
r
}
#[unstable(feature = "std_misc", reason = "may be removed or relocated")]
pub fn to_str_exp_digits(num: f32, dig: uint, upper: bool) -> String {
let (r, _) = strconv::float_to_str_common(
- num, 10u, true, SignNeg, DigMax(dig), ExpDec, upper);
+ num, 10, true, SignNeg, DigMax(dig), ExpDec, upper);
r
}