Re: implied decimal


[ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by WAllison on December 01, 2001 at 16:15:34:

In Reply to: implied decimal posted by idnick on March 22, 2001 at 09:51:55:

: I am very new to Delphi...
: I need to replace an occurrence of a decimal point with a blank space.
: Example: 322.98 = 322 98

: Any help would be appreciated.

as long as there is a '.' Then it goes something like this (no frills):

procedure RemoveIt(value: real);
var s: integer;
begin
s := FloatToStr(value);
s[pos('.',s)] := ' ';
end;


Related Articles and Replies