Skip to content

Types of numbers #4

Description

@chris-martin

This would be sort of a followup to common types that goes more in depth on numbers.

  • Signed integers: Integer, Int8, Int16, Int32, Int64
  • Unsigned integers: Natural, Word8, Word16, Word32, Word64
  • Int and Word are hardware-specific type aliases (e.g. Int is probably Int32 or Int64 on a 32-bit or 64-bit processor)
  • Floating point: Float, Double
  • The default types for numeric literals are Integer for whole numbers are Double for fractions.
  • Also: Complex, Ratio, Rational
  • Conversions between types of numbers

If there are too many things to show, this topic might span multiple examples.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good for new contributorsPull requests welcome!new exampleThis issue is about writing a new example program.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions