Documentos de Académico
Documentos de Profesional
Documentos de Cultura
funcin al pulsar el botn pasando los valores de edit1, edit2 y edit3. Ahora solo tienes
que retocarla a tu gusto
//resultado b
rb := sqr(x) - 2;
rmed := sqr(x) - 2;
Por ejemplo:
var
e: Extended;
RegistroFloat: TFloatRec;
begin
e := 1234.5678;
FloatToDecimal( RegistroFloat, e, fvExtended, 10, 4 );
end;
RegistroFloat.Digits = 12345678
RegistroFloat.Negative = False
RegistroFloat.Exponent = 4
var
c: Currency;
begin
if TryFloatToCurr( 123.456789, c ) then
ShowMessage( CurrToStr( c ) );
end;
var
i: Integer;
r: Real;
begin
i := 1234;
r := i; // realiza el casting
automticamente
ShowMessage( FloatToStr( r ) ); // muestra 1234
end;