Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Truncate float without rounding (https://www.delphipraxis.net/178390-truncate-float-without-rounding.html)

Sir Rufo 5. Jan 2014 22:12

AW: Truncate float without rounding
 
Zitat:

Zitat von Furtbichler (Beitrag 1242318)
Look it up in google, I just did it and it worked (google) so it's not down and will help you same way.

Maybe his router block all websites except this one :mrgreen:

WojTec 8. Jan 2014 17:01

Re: AW: Re: Truncate float without rounding
 
Zitat:

Zitat von Sir Rufo (Beitrag 1242317)
Why I have a NO in my mind? :roll:

I don't know :P

So, both Trunc() and Int() remove from input fraction, but both returns different type. I don't know why (if result is integer) and this is reason I'm asking about differences.

BTW: forgot about Round(), that's was mistake :-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:08 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz