Skip to content

Commit cc38848

Browse files
committed
Shorten the intro text for f32/f64
1 parent ee80d34 commit cc38848

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sus/num/float.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@
4040

4141
namespace sus::num {
4242

43-
/// A 32-bit floating point type (specifically, this type holds the same values
44-
/// as the `float` type specified by the C++ standard).
43+
/// A 32-bit floating point type.
4544
///
4645
/// This type can represent a wide range of decimal numbers, like 3.5, 27,
4746
/// -113.75, 0.0078125, 34359738368, 0, -1. So unlike integer types (such as
4847
/// `i32`), floating point types can represent non-integer numbers, too.
48+
/// Specifically, this type holds the same values
49+
/// as the `float` type specified by the C++ standard.
4950
///
5051
/// See the [namespace level documentation]($sus::num) for more.
5152
struct [[sus_trivial_abi]] f32 final {
@@ -59,11 +60,12 @@ struct [[sus_trivial_abi]] f32 final {
5960
#define _suffix f
6061
#include "sus/num/__private/float_consts.inc"
6162

62-
/// A 64-bit floating point type (specifically, this type holds the same values
63-
/// as the `double` type specified by the C++ standard).
63+
/// A 64-bit floating point type.
6464
///
6565
/// This type is very similar to [`f32`]($sus::num::f32), but has increased precision by using
6666
/// twice as many bits.
67+
/// Specifically, this type holds the same values
68+
/// as the `double` type specified by the C++ standard.
6769
///
6870
/// See the [namespace level documentation]($sus::num) for more.
6971
struct [[sus_trivial_abi]] f64 final {

0 commit comments

Comments
 (0)