Einzelnen Beitrag anzeigen

Rifman

Registriert seit: 21. Mär 2008
Ort: Frankfurt am Main
54 Beiträge
 
Delphi 5 Standard
 
#11

Re: Extended in Integer Schreiben!

  Alt 9. Apr 2008, 10:11
Zitat von Klaus01:
.. so würde es auch gehen:
Nachkommaanteil:= trunc((frac(FloatValue)*1000);
Zitat von DelphiHelp:
Returns the fractional part of a real number.

function Frac(X: Extended): Extended;

Description

The Frac function returns the fractional part of the argument X.

X is a real-type expression. The result is the fractional part of X; that is, Frac(X) = X - Int(X).
Grüße
Klaus
Vielen Dank, und wieder was neues gelernt!
  Mit Zitat antworten Zitat