tam sayı sonuç elde etmek
Forum kuralları
Forum kurallarını okuyup, uyunuz!
Forum kurallarını okuyup, uyunuz!
tam sayı sonuç elde etmek
iki integer sayının sonucu sadece tam sayı olması için ne yapabilirim. ondalık kesiminin olmaısnı istemiyorum.
Round fonksiyonu ile ilgili ufak bir hatirlatma. Eger ondalık kısım 5 ise yani 1.5 , 4.5 gibi bu durumda beklendigi gibi yukari yuvarlama degil en cift sayiya yuvarlama yapiyor... Yani
Round(5.5)=6
Round(6.6)=6
Round(5.5)=6
Round(6.6)=6
Delphi help yazdı:X is a real-type expression. Round returns an Int64 value that is the value of X rounded to the nearest whole number. If X is exactly halfway between two whole numbers, the result is always the even number.
* http://www.fahrettin.org Manzara Fotoğraflarım... 
* http://delphiturkiye.gunduz.info Seminerler...
* http://www.hakmar.com.tr Kalite bir haktır...

* http://delphiturkiye.gunduz.info Seminerler...

* http://www.hakmar.com.tr Kalite bir haktır...
