English
Forum

Calculate?

 

Pedro
Santos
Hello Profaner

can me Please someone explain Why not correctly. accounts becomes?

thanks

greeting
Pedro
CompileMarkSeparation
declare a!,a$,total!,b$,b!,b&
@Set("Decimals",2)
cls
b$ = "12"
b& = @val(b$)
a$="0,35"
a!= @val(a$)
total!= a!*b&
print total!
waitinput
Windows XP Home
Xprofan 10
05/14/06  
 




Rolf
Koch
Hi because of the comma. it must one point in a$ his.
but simply ne additional case request and already GEHTS
CompileMarkSeparation
declare a!,a$,total!,b$,b!,b&
@Set("Decimals",2)
cls
b$ = "12"
b& = @val(b$)
a$="0,35"
case instr(",",a$):a$=translate$(a$,",",".")
a!= @val(a$)
total!= a!*b&
print total!
waitinput
05/14/06  
 




Pedro
Santos
thanks you Rolf

How always very quick

greeting

Pedro
 
Windows XP Home
Xprofan 10
05/14/06  
 




Clemens
Meier

CompileMarkSeparation
Case Instr(",",A$):A$=Translate$(A$,",",".")
>

If one so calculate can, that over ands over again the comma instead of the Punktes vorkommt (z.B. because of one Inputs), can the Case simply omit and directly translate:
CompileMarkSeparation
A$=Translate$(A$,",",".")
>

gives it one comma, becomes it supplant. gives it no comma, happens nothing.
 
XProfan 9.1; XP SP2; FF; Editpad
05/15/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

896 Views

Untitledvor 0 min.
Uwe Lang vor 22 Tagen
Manfred Barei11/24/13
Heiko Dix12/09/10

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