Autor Beitrag
apoc
Hält's aus hier
Beiträge: 14



BeitragVerfasst: So 12.12.04 17:52 
wie kann ich im quelltext die benutzung von kommazahlen aktivieren?

Moderiert von user profile iconTino: Titel geändert.
Moderiert von user profile iconTino: Topic aus VCL (Visual Component Library) verschoben am So 12.12.2004 um 22:02
Basti
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: So 12.12.04 18:05 
Ähm - ich versteh die Frage nicht ganz, aber ich vermute du meinst,
dass er meckert, wenn du ein Komma tippst?
Du musst einen Punkt anstelle des Komams setzen.

_________________
Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.
apoc Threadstarter
Hält's aus hier
Beiträge: 14



BeitragVerfasst: So 12.12.04 18:13 
nein ich meine dass wenn ich z.b. einen rechner programiere in den eingabefeldern kommazahlen erkannt sollen.

da kommt immer der fehler: '1.1' (oder 1,1) is not a valid integer value
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: So 12.12.04 18:17 
du musst den Typ 'Real' verwenden und nicht Integer.

DelphiHilfe sagt dazu:
Real:
Generic real types
Type Range Significant digits Size in bytes
Real 5.0 x 10^-324 .. 1.7 x 10^308 15-16 8

Fundamental real types
Type Range Significant digits Size in bytes
Real48 2.9 x 10^-39 .. 1.7 x 10^38 11-12 6
Single 1.5 x 10^-45 .. 3.4 x 10^38 7-8 4
Double 5.0 x 10^-324 .. 1.7 x 10^308 15-16 8
Extended 3.6 x 10^-4951 .. 1.1 x 10^4932 19-20 10
Comp -2^63+1 .. 2^63 -1 19-20 8
Currency -922337203685477.5808.. 922337203685477.5807 19-20 8

Integer:
Generic integer types for 32-bit implementations of Delphi
Type Range Format
Integer -2147483648..2147483647 signed 32-bit
Cardinal 0..4294967295 unsigned 32-bit

Fundamental integer types
Type Range Format
Shortint -128..127 signed 8-bit
Smallint -32768..32767 signed 16-bit
Longint -2147483648..2147483647 signed 32-bit
Int64 -2^63..2^63-1 signed 64-bit
Byte 0..255 unsigned 8-bit
Word 0..65535 unsigned 16-bit
Longword 0..4294967295 unsigned 32-bit

_________________
si tacuisses, philosophus mansisses.


Zuletzt bearbeitet von matze.de am So 12.12.04 18:24, insgesamt 1-mal bearbeitet
Basti
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: So 12.12.04 18:21 
Ach das meintest du :)
Hoffentlich konnte mein Tipp dann vorsorgen ;)
Anstelle von real geht man aber zur Zeit zu single über,
aber das ddürfte für dich nicht von so großem Interesse sein.

_________________
Der Computer ist die logische Weiterentwicklung des Menschen: Intelligenz ohne Moral.
Kroni
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 720

Win 98, Win ME, Win2k, Win XP
D3 Pro
BeitragVerfasst: So 12.12.04 18:31 
oder nehmen wir doch sofort extended *g*