Erlang Central

Difference between revisions of "Category:NumberRecipes"

From ErlangCentral Wiki

m
m (Reverted edits by Kaiserpanda (Talk); changed back to last version by Bfulgham)
Line 7: Line 7:
  
 
[[Category:CookBook]]
 
[[Category:CookBook]]
 
 
 
[http://www.gambling-online-theory.com/casinos-portal/best-casinos-online.html best casinos online]
 
[http://www.casino-games-wiki.com/index.php/casino_games_online casino games online]
 
[http://www.gambling-online-theory.com/casinos-portal/index.html casinos portal]
 
[http://www.slots-wiki.com/index.php/slots slots]
 
[http://www.gambling-online-theory.com/online-casino/bet-online-casino.html bet online casino]
 
[http://www.casino-theory.com/craps-rules/internet-craps-gambling.html internet craps gambling]
 
[http://www.casino-games-wiki.com/index.php/casino_games_rules casino games rules]
 
[http://www.magical-casino.com/casino_rules.html Casino rules.]
 
[http://www.3wcasinos.com/roulette-tips/roulette-description.html roulette description]
 
[http://www.casino-games-wiki.com/index.php/online_casino_games online casino games]
 

Revision as of 08:09, 24 November 2006

Introduction

Numbers are basic to just about any computation. They're used for array indexes, temperatures, salaries, and an infinite variety of things. Yet they're not as simple as they seem. With floating-point numbers, how accurate is accurate? With random numbers, how random is random? With strings that should contain a number, what actually constitutes a number?.

It is important to distinguish between the mathematical numbers, the Erlang numbers that attempt to model them, the machine representations used to implement the Erlang numbers, and notations used to write numbers. We uses the types number, complex, real, rational, and integer to refer to both mathematical numbers and Erlang numbers. Machine representations such as fixed point and floating point are referred to by names such as fixnum and flonum.

Erlang's numerical operations treat numbers as abstract data, as independent of their representation as possible. Although an implementation of Erlang may use fixnum, flonum, and perhaps other representations for numbers, this should not be apparent to a casual programmer writing simple programs.