Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor edits to builtins section.
  • Loading branch information
chromatic committed Sep 2, 2010
1 parent 2767aa1 commit 15f4a28
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/builtins.pod
Expand Up @@ -18,7 +18,7 @@ convert a copy of both C<$a> and C<$b> to numbers (unless they are numbers
already). This implicit conversion is called I<coercion>.

Besides operators, other syntactic elements coerce their elements: C<if> and
C<while> coerce to truth values (bool), C<for> views things as lists, and so
C<while> coerce to truth values (C<Bool>), C<for> views things as lists, and so
on.

=for author
Expand All @@ -30,9 +30,9 @@ here too.

=head1 Numbers

Sometimes coercion is intuitively transparent. Perl 6 has several numeric
types which you can intermix freely. For example, subtracting a floating point
value from an integer works, as in C<123 - 12.1e1>.
Sometimes coercion is transparent. Perl 6 has several numeric types which can
intermix freely--such as subtracting a floating point value from an integer, as
C<123 - 12.1e1>.

The most important types are:

Expand All @@ -53,7 +53,7 @@ X<types; Num>

C<Num> is the floating point type. It stores sign, mantissa, and exponent, each
with a fixed width. Calculations involving C<Num> numbers are usually quite
fast, but subject to limited precision.
fast, though subject to limited precision.

Numbers in scientific notation such as C<6.022e23> are of type C<Num>.

Expand All @@ -70,8 +70,8 @@ so mathematical operations on C<Rat>s with large components can become quite
slow. For this reason, rationals with large denominators automatically degrade
to C<Num>.

Writing a fractional value with a dot as the decimal separator produces a
C<Rat>, for example C<3.14>.
Writing a fractional value with a dot as the decimal separator, such as
C<3.14>, produces a C<Rat>.

=item Complex

Expand Down

0 comments on commit 15f4a28

Please sign in to comment.