COMP.ARCH---------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 12 из 100
 От   : John Levine                         2:5075/128        23 сен 23 22:01:49
 К    : Michael S                                             23 сен 23 01:03:05
 Тема : Re: lotsa money and data sizes, Solving the Floating-Point Conundrum
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1@gal.iecc.com> faf2ccb5
@REPLY:
<09798d75-4962-47b8-8816-d554d201a522n@googlegroups.com> 24432bf5
@REPLYADDR John Levine <johnl@taugh.com>
@REPLYTO 2:5075/128 John Levine
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@gal.iecc.com>
@RFC-References:
<57c5e077-ac71-486c-8afa-edd6802cf6b1n@googlegroups.com> <2023Sep23.123024@mips.complang.tuwien.ac.at> 2@gal.iecc.com>
<09798d75-4962-47b8-8816-d554d201a522n@googlegroups.com>
@TZUTC: -0000
@TID: FIDOGATE-5.12-ge4e8b94
According to Michael S  <already5chosen@yahoo.com>:
>> Like I said a few minutes ago, there are decimal financial formulae 
>> developed long ago for bond pricing and related time and interest 
>> calculations. Since there are literaly trillions of dollars of 
>> financial instruments priced and sold this way, I can see that for 
>> some customers it would be worth a lot to have decimal arithmetic that 
>> could implement this directly with well defined decimal rounding at 
>> each step to make it easier to write correct code.

>All easily done in sw with even more defined rounding semantics. 
>And considering how fast modern z CPUs are, they sure wouldn`t break
>a sweat doing so.

In the sense that all modern computers are Turing equivalent, sure.
You can do this sort of stuff in python.

But given the cost of getting stuff wrong, it`s worth something to
them to know that the decimal stuff is locked down at the hardware
level.

Z implements a lot of the complex instructions in microcode which uses
the hardwired subset of the instruction set, which they call millicode
but apparently DFP is hardware.

This paper describes the hardware and software support for DFP:

https://speleotrove.com/mfc/files/schwarz2009-decimalFP-on-z10.pdf

-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
--- trn 4.0-test77 (Sep 1, 2010)
 * Origin: Taughannock Networks (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх