Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types of numbers #4

Open
chris-martin opened this issue Sep 30, 2019 · 0 comments
Open

Types of numbers #4

chris-martin opened this issue Sep 30, 2019 · 0 comments
Labels
good for new contributors Pull requests welcome! new example This issue is about writing a new example program.

Comments

@chris-martin
Copy link
Member

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.

@chris-martin chris-martin added good for new contributors Pull requests welcome! new example This issue is about writing a new example program. labels Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good for new contributors Pull requests welcome! new example This issue is about writing a new example program.
Projects
None yet
Development

No branches or pull requests

1 participant