Single to Extended how? lazarus / 7-LCL ---------------------------------------------------------------------- =sniper= · 2006-06-20 09:26 ... Error: Illegal type conversion: "Single" to "Extended" at line with Code: [Select]Extended(temp) how to fix this? ---------------------------------------------------------------------- Anonymous · 2006-06-20 09:34 sorry. ---------------------------------------------------------------------- Anonymous · 2006-06-20 09:37 ah it compiles with {$MODE objfpc} but not in {$MODE Delphi} why? ---------------------------------------------------------------------- Marc · 2006-06-20 14:20 Casting is ugly and potentially dangerous. You normally don't have to cast, assigning works: var   s: Single;   e: extended; begin   s := 1.2;   e := s; end; ---------------------------------------------------------------------- Anonymous · 2006-06-20 18:51 I am porting game engine from Delphi to FPC ) ---------------------------------------------------------------------- Anonymous · 2006-06-20 19:08 Thank you