English
Forum

trouble: input$ can no Point numbers withal Float-Variable

 
- Page 1 -



Lefty
Kapiere I do not. is the solid so?

window 800,200

Declare tempo!
tempo!=24.55
tempo!=Input$("Tempo","With Komma",tempo!)
locate 3,7
print tempo! 'Nur ganzzahliger worth Why?????
locate 5,7
print "Input$ shows only ganzzahligen share withal Float_Variabel! "
locate 7,7
print " Please tempo with comma eingeben"
Input tempo! ' is uncomfortably Eingabefenster would me rather
locate 9,7
print "tempo with Komma",tempo! 'so goes it
waitinput
end

everything what can is simply The remainder a distress
THX Lefty
 
WKS
03/09/20  
 



« this Posting watts as Solution marked. »


Jörg
Sellmeyer
In this case is möglicherweise too the Info "Bitte with comma eingeben", the crucial Error. Floats must in Profan with a point indicated go.

this code functions anyway with X4.0 How desired.
Cls
Var x! = Input$("Zahl with point prompt!","Einganbe","")
Print X!
WaitInput

in the Eingangspost becomes too yet the Error made, on Input$ a Floatvariable as default To transfer. the are then well a couple Anforderungen too much on whom Parser.
 
XProfan X4
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/23/20  
 




p.specht

Cls
var tempo!=2.55
tempo!=val(Input$("Tempo","With Komma",tempo!))
print tempo!
WaitEnd
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
03/09/20  
 




Michael
W.
time functions The automatic conversion and then again not.

The function Input$() shows through "$" already on, that here one String zurückgegeben becomes.

If the now of/ one Float-variables allocated becomes, then ought to The automatic conversion really everything zurecht back.

If the times not works, then help Val() and Str$() moreover.

Error or feature?!
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
03/09/20  
 




p.specht

interestingly is only, that var t$=22.555
var t!=t$
zero supply, during
t!=Input$("","",t$)
still 22 supply. I give Lefty right, that the unusual is.
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
03/09/20  
 




Lefty
Michael has unfortunately right. The automatic conversion isn't reliably.
time goes, times not. I can the but unfortunately not understand.
to that Happiness works it usually NOT, otherwise would I me well yet The hairs scuffle.
OK, this is one Buck for Roland. either integrally on automatic transmission dispense, or reliably make .

now pragmatisch to Solution the trouble:
I use fundamentally only another Stringvariable (Temp$)

Temp$=Input$("Tempo","With Komma",tempo!)
and wandle then aimed circa
tempo!=VAL(Temp$)

Have Yes now each crowd Time means
head high and qualmen let
Topic is Done
Thanks
Lefty
 
03/23/20  
 




p.specht

 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
03/23/20  
 




Jörg
Sellmeyer
In this case is möglicherweise too the Info "Bitte with comma eingeben", the crucial Error. Floats must in Profan with a point indicated go.

this code functions anyway with X4.0 How desired.
Cls
Var x! = Input$("Zahl with point prompt!","Einganbe","")
Print X!
WaitInput

in the Eingangspost becomes too yet the Error made, on Input$ a Floatvariable as default To transfer. the are then well a couple Anforderungen too much on whom Parser.
 
XProfan X4
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/23/20  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.422 Views

Untitledvor 0 min.
Lefty05/13/22
Glubbfan06/21/21
p.specht05/25/21
Micha1233412/08/20
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie