Ver Mensaje Individual
  #1  
Antiguo 25-01-2010
Alejo15x Alejo15x is offline
Miembro
 
Registrado: ene 2010
Posts: 55
Reputación: 15
Alejo15x Va por buen camino
Calculador de Formulas

Hola

Otra vez con una dudilla!

tengo la siguiente funcion:
Código Delphi [-]
function ExpForLevel(level:integer):extended;
begin
result:= (50.0 * ((level / 3.0) * (level * (level - 6.0) + 17.0) - 4.0));
end;

Y quiero usarla con los siguientes parametros:

Código Delphi [-]
showmessage((expforlevel(5));

Alguna idea de por que me dice:

[Error] Unit1.pas(36): Incompatible types: 'String' and 'Extended'
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'

Ayuda por favor!
Responder Con Cita