English
Regulars table & Café

Done: Beginner ? - Point numbers

 

Detlef
Tussing
i'm well again Beginner ??

with
CompileMarkSeparation
declare a%, b%,c%
a% = 3
b% = a%/2
c%=b%*2
print a% ," ",b%, " ",c%
waitinpu

is the Ergebniss

3 1 2

where are The Kommastellen stayed

 
Gruß Detlef Tussing
Windows XP, XProfan 10
03/27/10  
 



Integer/ Long (only) for whole numbers, Kommas with Float:

X11:
CompileMarkSeparation
declare a!,b!,c!
a!=3
b!=a!/2
c!=b!*2
print a!,b!,c!
waitinpu

X12:
CompileMarkSeparation
XPSE:
CompileMarkSeparation
float a,b,c
a=3
b=a/2
c=b*2
print a,b,c
waitinput

Nativ:
CompileMarkSeparation
float a,b,c
a=3.0
b=a/2.0
c=b*2.0
 
03/27/10  
 




Detlef
Tussing
thanks IF
I Have well yet never with Point numbers under XProfan calculated
but disturbing are the many Nachkommastellen
I can tappt im dunkeln of course with the display suppress
but for are again some command necessary
there no Variablenbezeichnung for 2 Nachkommastellen with entsprechender Rundung
 
Gruß Detlef Tussing
Windows XP, XProfan 10
03/27/10  
 




Dietmar
Horn

CompileMarkSeparation
declare a!,b!,c!
a! = 2
b! = round(a!/3,2)
c! = round(b!*7,2)
Set("Decimals",2)
print a! ," ",b!, " ",c!
waitinp

Greeting
Dietmar
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
03/27/10  
 



helps vlt. decimals .
 
03/27/10  
 




Dietmar
Horn
only Decimals rundet but not, so How of Detlef desired, separate cut solely Nachkommastellen ex.
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
03/27/10  
 



Jupp, wished only Odokuerklärlink add, because in the code Set("Decimals" as Stringkonstante not clickable is.
 
03/28/10  
 




Detlef
Tussing
thanks you both

had I one little More in the Help gestöbert, would I well yourself on it come.

but "Nur fragenden Humans can helfen"
 
Gruß Detlef Tussing
Windows XP, XProfan 10
03/28/10  
 



You Schelm!
 
03/28/10  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.035 Views

Untitledvor 0 min.
Torben Nissen08/11/19
Erasmus.Herold05/02/19
rquindt03/19/18
Muemmelmann01/17/15
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