Home
|
GR32
|
|
function Fixed(S: Single): TFixed; overload;
function Fixed(I: Integer): TFixed; overload;
A couple of TFixed constructors.
In case you don't want your program to loose time on extra function call, you can use another method of converting Integer to TFixed:
var
FX: TFixed;
begin
FX := IntVal shl 16;
...
end;
Copyright ©2000-2012 Alex Denisov and the Graphics32 Team - Graphics32 v1.9.1 - Build on 28-August-2012