@@ -24,14 +24,16 @@ type, would produce a fractional number, without any rounding performed.
24
24
say 4/5; # OUTPUT: «0.8»
25
25
= end code
26
26
27
- The type produced by this division is either a L < Rat|/type/Rat > or a L < Num|/type/Num > type. The
28
- L < Rat|/type/Rat > is produced if, after reduction, the fraction's denominator is smaller
29
- than 64 bits, otherwise a L < Num|/type/Num > type is produced.
27
+ The type produced by this division is either a L < Rat|/type/Rat > or a
28
+ L < Num|/type/Num > type. The L < Rat|/type/Rat > is produced if, after reduction, the
29
+ fraction's denominator is smaller than 64 bits, otherwise a L < Num|/type/Num >
30
+ type is produced.
30
31
31
- The L < div|/routine/div > and L < narrow|/routine/narrow > routines can be helpful if you wish to end
32
- up with an L < Int|/type/Int > result, whenever possible. The L < div|/routine/div > operator performs
33
- integer division, discarding the remainder, while L < narrow|/routine/narrow > fits the number
34
- into the narrowest type it'll fit:
32
+ The L < div|/routine/div > and L < narrow|/routine/narrow > routines can be helpful if
33
+ you wish to end up with an L < Int|/type/Int > result, whenever possible. The
34
+ L < div|/routine/div > operator performs integer division, discarding the
35
+ remainder, while L < narrow|/routine/narrow > fits the number into the narrowest
36
+ type it'll fit:
35
37
36
38
= begin code
37
39
say 5 div 2; # OUTPUT: «2»
@@ -633,9 +635,8 @@ my int $a-native = -42;
633
635
Since there are no classes behind native types, there are no type objects you'd
634
636
normally get with variables that haven't been initialized. Thus, native types
635
637
are automatically initialized to zero. In 6.c language, native floating point
636
- types (C < num > , C < num32 > , and C < num64 > ) are initialized to value C < NaN > ; in 6.d
637
- language the default is C < 0e0 > (early implementation available in Rakudo
638
- 2018.08, under C < use v6.d.PREVIEW > pragma).
638
+ types (C < num > , C < num32 > , and C < num64 > ) were initialized to value C < NaN > ; in 6.d
639
+ language the default is C < 0e0 > .
639
640
640
641
= head2 Native dispatch
641
642
0 commit comments