File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -470,9 +470,9 @@ impl f32 {
470
470
return unsafe { intrinsics:: logf32 ( self ) } ;
471
471
}
472
472
473
- /// Returns the logarithm of the number with respect to an arbitrary base,
474
- /// calculated as `self.ln() / base.ln()`.
473
+ /// Returns the logarithm of the number with respect to an arbitrary base.
475
474
///
475
+ /// The result may not be correctly rounded owing to implementation details;
476
476
/// `self.log2()` can produce more accurate results for base 2, and
477
477
/// `self.log10()` can produce more accurate results for base 10.
478
478
///
Original file line number Diff line number Diff line change @@ -430,9 +430,9 @@ impl f64 {
430
430
self . log_wrapper ( |n| { unsafe { intrinsics:: logf64 ( n) } } )
431
431
}
432
432
433
- /// Returns the logarithm of the number with respect to an arbitrary base,
434
- /// calculated as `self.ln() / base.ln()`.
433
+ /// Returns the logarithm of the number with respect to an arbitrary base.
435
434
///
435
+ /// The result may not be correctly rounded owing to implementation details;
436
436
/// `self.log2()` can produce more accurate results for base 2, and
437
437
/// `self.log10()` can produce more accurate results for base 10.
438
438
///
You can’t perform that action at this time.
0 commit comments