@@ -369,7 +369,7 @@ impl Float for f32 {
369
369
#[ unstable( feature = "std_misc" , reason = "may be removed or relocated" ) ]
370
370
pub fn to_string ( num : f32 ) -> String {
371
371
let ( r, _) = strconv:: float_to_str_common (
372
- num, 10 u , true , SignNeg , DigAll , ExpNone , false ) ;
372
+ num, 10 , true , SignNeg , DigAll , ExpNone , false ) ;
373
373
r
374
374
}
375
375
@@ -382,7 +382,7 @@ pub fn to_string(num: f32) -> String {
382
382
#[ unstable( feature = "std_misc" , reason = "may be removed or relocated" ) ]
383
383
pub fn to_str_hex ( num : f32 ) -> String {
384
384
let ( r, _) = strconv:: float_to_str_common (
385
- num, 16 u , true , SignNeg , DigAll , ExpNone , false ) ;
385
+ num, 16 , true , SignNeg , DigAll , ExpNone , false ) ;
386
386
r
387
387
}
388
388
@@ -395,7 +395,7 @@ pub fn to_str_hex(num: f32) -> String {
395
395
/// * radix - The base to use
396
396
#[ inline]
397
397
#[ unstable( feature = "std_misc" , reason = "may be removed or relocated" ) ]
398
- pub fn to_str_radix_special ( num : f32 , rdx : uint ) -> ( String , bool ) {
398
+ pub fn to_str_radix_special ( num : f32 , rdx : u32 ) -> ( String , bool ) {
399
399
strconv:: float_to_str_common ( num, rdx, true , SignNeg , DigAll , ExpNone , false )
400
400
}
401
401
@@ -410,7 +410,7 @@ pub fn to_str_radix_special(num: f32, rdx: uint) -> (String, bool) {
410
410
#[ unstable( feature = "std_misc" , reason = "may be removed or relocated" ) ]
411
411
pub fn to_str_exact ( num : f32 , dig : uint ) -> String {
412
412
let ( r, _) = strconv:: float_to_str_common (
413
- num, 10 u , true , SignNeg , DigExact ( dig) , ExpNone , false ) ;
413
+ num, 10 , true , SignNeg , DigExact ( dig) , ExpNone , false ) ;
414
414
r
415
415
}
416
416
@@ -425,7 +425,7 @@ pub fn to_str_exact(num: f32, dig: uint) -> String {
425
425
#[ unstable( feature = "std_misc" , reason = "may be removed or relocated" ) ]
426
426
pub fn to_str_digits ( num : f32 , dig : uint ) -> String {
427
427
let ( r, _) = strconv:: float_to_str_common (
428
- num, 10 u , true , SignNeg , DigMax ( dig) , ExpNone , false ) ;
428
+ num, 10 , true , SignNeg , DigMax ( dig) , ExpNone , false ) ;
429
429
r
430
430
}
431
431
@@ -441,7 +441,7 @@ pub fn to_str_digits(num: f32, dig: uint) -> String {
441
441
#[ unstable( feature = "std_misc" , reason = "may be removed or relocated" ) ]
442
442
pub fn to_str_exp_exact ( num : f32 , dig : uint , upper : bool ) -> String {
443
443
let ( r, _) = strconv:: float_to_str_common (
444
- num, 10 u , true , SignNeg , DigExact ( dig) , ExpDec , upper) ;
444
+ num, 10 , true , SignNeg , DigExact ( dig) , ExpDec , upper) ;
445
445
r
446
446
}
447
447
@@ -457,7 +457,7 @@ pub fn to_str_exp_exact(num: f32, dig: uint, upper: bool) -> String {
457
457
#[ unstable( feature = "std_misc" , reason = "may be removed or relocated" ) ]
458
458
pub fn to_str_exp_digits ( num : f32 , dig : uint , upper : bool ) -> String {
459
459
let ( r, _) = strconv:: float_to_str_common (
460
- num, 10 u , true , SignNeg , DigMax ( dig) , ExpDec , upper) ;
460
+ num, 10 , true , SignNeg , DigMax ( dig) , ExpDec , upper) ;
461
461
r
462
462
}
463
463
0 commit comments