Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Miscellaneous
»
Suggestions
»
LCL
»
Single to Extended how?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Bugs caused by the weathe...
by
dsiders
[
Today
at 04:40:59 am]
[Solved[ How to define th...
by
jamie
[
Today
at 02:33:13 am]
Lazarus Bugfix Release 4....
by
moinsen
[
Today
at 12:57:37 am]
Lazarus IDE plugin that i...
by
BSaidus
[August 10, 2026, 11:21:20 pm]
Is it timing of a dataset...
by
1HuntnMan
[August 10, 2026, 09:41:05 pm]
Dataset EnableControls/Di...
by
1HuntnMan
[August 10, 2026, 09:31:58 pm]
Application triggers mess...
by
JanRoza
[August 10, 2026, 09:29:03 pm]
[SOLVED] TTL Record Count...
by
1HuntnMan
[August 10, 2026, 09:21:46 pm]
Identify network devices
by
Warfley
[August 10, 2026, 08:16:02 pm]
TFPHTTPServer DDoS protec...
by
Warfley
[August 10, 2026, 07:58:41 pm]
Gtk3 becomes default widg...
by
PascalDragon
[August 10, 2026, 07:44:48 pm]
how to connect to mariadb...
by
eldonfsr
[August 10, 2026, 07:38:05 pm]
Is it possible to communi...
by
Warfley
[August 10, 2026, 07:37:35 pm]
How get listy of FieldDat...
by
eldonfsr
[August 10, 2026, 06:19:37 pm]
PasGuard – Code Protectio...
by
pasguard
[August 10, 2026, 05:32:53 pm]
TyControls: a custom-draw...
by
Antek
[August 10, 2026, 05:20:29 pm]
Diagonal Lines and Spaced...
by
Boleeman
[August 10, 2026, 04:29:07 pm]
[UPDATE] SedaiBasic - SSA...
by
Gigatron
[August 10, 2026, 04:00:12 pm]
Unleashed Pascal (async/a...
by
creaothceann
[August 10, 2026, 02:24:53 pm]
MR - DebuggerIntf for ter...
by
Martin_fr
[August 10, 2026, 01:50:18 pm]
New charts
by
JD
[August 10, 2026, 12:13:34 pm]
PIX (Picture in Hexadecim...
by
ADMGNS
[August 10, 2026, 11:15:06 am]
Fpcupdeluxe
by
DonAlfredo
[August 10, 2026, 10:22:45 am]
Star Wars Galaxian
by
PierceNg
[August 10, 2026, 10:10:44 am]
QGradientTrackPanel: A Fu...
by
Boleeman
[August 10, 2026, 07:13:07 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Single to Extended how? (Read 6988 times)
=sniper=
Guest
Single to Extended how?
«
on:
June 20, 2006, 11:26:51 am »
... Error: Illegal type conversion: "Single" to "Extended"
at line with
Code:
[Select]
Extended(temp)
how to fix this?
Logged
Anonymous
Guest
RE: Single to Extended how?
«
Reply #1 on:
June 20, 2006, 11:34:23 am »
sorry.
Logged
Anonymous
Guest
RE: Single to Extended how?
«
Reply #2 on:
June 20, 2006, 11:37:56 am »
ah it compiles with {$MODE objfpc} but not in {$MODE Delphi} why?
Logged
Marc
Administrator
Hero Member
Posts: 2706
RE: Single to Extended how?
«
Reply #3 on:
June 20, 2006, 04:20:35 pm »
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;
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
Anonymous
Guest
RE: Single to Extended how?
«
Reply #4 on:
June 20, 2006, 08:51:16 pm »
I am porting game engine from Delphi to FPC
)
Logged
Anonymous
Guest
RE: Single to Extended how?
«
Reply #5 on:
June 20, 2006, 09:08:39 pm »
Thank you
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Miscellaneous
»
Suggestions
»
LCL
»
Single to Extended how?
TinyPortal
© 2005-2018