English
Source / code snippets

Floating Point-spending in voller 'DoublePrecision'

 

p.specht

to control (z.B. new Procs The on Floatingpoint-variables works) is
:: print stature$(%g",x!)
not always The best Solution. sometimes wants one simply The filled available Kommastellen see, even if The last both seldom voices. The nachstehende Proc PRT Done the in voller wide for positive How negatives numbers as well as zero, The ergänzende Proc PRTLN fügt moreover yet CR+LF (new row) on.
cls:font 2:set("decimals",18)
var c!=val("-123456789012345678E+291")'for XProfan 11.2a and -Free64
'var c!=val("-123456789012345678E+20")  'for X2 and ältere FreeProfan32-verse.
prtln(c!)
waitinput
end

proc prt :parameters x!

    print stature$(\
    "+#.#################E+000;-#.#################E+000,; 0.0###############0e0000"\
    ,c!);

endproc

proc prtln :parameters x!

    prt(x!):print

endproc

 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/09/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

577 Views

Untitledvor 0 min.
H.Brill08/04/23
Ernst07/21/21
Uwe ''Pascal'' Niemeier06/13/21
R.Schneider05/28/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


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