View Single Post
  #5 (permalink)  
Old 11-15-2007, 12:53 PM
klaus's Avatar
klaus klaus is online now
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 677
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Die Antwort von Erel dem Basic4ppc Autor

Round function

Basic4ppc uses the .Net Framework Round function.
Here is a quote from .Net documentation that explains this behavior:

Quote:
Return Value

The whole number nearest a. If a 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.

Basic4ppc nützt die .Net Round Funktion
Die .Net Unterlagen beschreiben die Funktion wie folgend:
Der zurückgegebener Wert ist die ganze der am nähesten ist, wenn zwei zahlen gleich nahe sind gibt es eine gerade und eine ungerade Zahl, die gerade Zahl wird zurückgegeben.
Dies entspricht der IEEE 754 Norm.

Klaus
Reply With Quote