Transcription of Rexx Arithmetic
{{id}} {{{paragraph}}}
rexx Arithmetic -more than just numbersMike CowlishawIBM arithmeticCurrent status Databases Other languages Hardware StandardsRationalizing decimal arithmeticQuestions?Why is decimal Arithmetic important?Decimal Arithmetic represents numbers in base ten, so uses the same number system that people have used for thousands of yearsPervasive for financial andother commercial applications; often a legal requirement55% of numeric data incommercial databases aredecimal (and a further 43% are integers) = 1/10 = 1 x 10 = 1E-1= 1/16 + 1/32 + 1/256 + 1/512 + 1/4096 + 1/8192 + ..Decimal:Binary:-1 The trouble with binaryRepeated division by 10; what users division by 10; what they get:Decimalfloat (binary) exampleWhat does the following code segment display?
Overview Rexx arithmetic Current status Databases Other languages Hardware Standards Rationalizing decimal arithmetic Questions?
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}