OT: kerekites a 4 alapmuveletnel
HWSW Famulus
hwsw at famulus.hu
Tue Dec 30 21:22:17 CET 2003
Na meg is van!
A VisualBasic szekcioban ki is mondja a bankar szot is...
es hogy ez szabvany is odaat.
Amugy ilyesmiknel, ha nincs jo talalat a google-ban
akkor a masodik hely amit erdmes megnezni
az mindig az MSDN !!!!
KJ
Return Value
The whole number nearest parameter d. If d is halfway between two whole numbers, one of which by definition is even and the other odd, then the even number is returned.
Remarks
The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding to nearest, or banker's rounding.
KJ
----- Original Message -----
From: HWSW Famulus
To: elektro at tesla.hu
Sent: Tuesday, December 30, 2003 9:16 PM
Subject: Re: OT: kerekites a 4 alapmuveletnel
Hol....hol....
Hat minden tudasok forrasanal :-))))
A Microsoft Dveloper Network-ben,
legalabbis az MS verziot.........
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemMathClassRoundTopic.asp
A lenyeg:
When d is exactly halfway between two rounded values, the result is the rounded value that has an even digit in the far right decimal position. For example, when rounded to two decimals, the value 2.345 becomes 2.34 and the value 2.355 becomes 2.36. This process is known as rounding toward even, or rounding to nearest.
KJ
----- Original Message -----
From: VFX
To: elektro at tesla.hu
Sent: Tuesday, December 30, 2003 8:55 PM
Subject: Re: OT: kerekites a 4 alapmuveletnel
Hali!
> A banki kerekites (parosra es paratlanra maskent banik a 0,5-el)
>
> 1,499999999.... -> 1
> 1,500000000.... -> 1
> 1,510000000.... -> 2
>
> 2,499999999.... -> 2
> 2,500000000.... -> 3
> 2,510000000.... -> 3
>
> de lehet, hogy forditva a fene emlexik pontosan
> valami forrasban megvan valahol, ha szornyen kell
Ez lesz az, hol lehet ennek pontosan utana nezni?!
UDV. VFX.
http://www.vfx.hu
More information about the Elektro
mailing list