Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  convert.cob

  Sprache: Cobol
 

       identification division.
       program-id. convert.
      *  aus Wirth, systematisches Programmieren p. 102/ p. 103 ??? 
       author"JD".
       date-written11.9.2005.
       date-compiled.
       data division.
       working-storage section.
       77 h   pic 9(4).
       linkage section.
       77 m pic 9(4)V9(4).
       77 b pic 9(4).
       77 d pic 9(4).
       procedure division using m b d.
      * converts reals to strings
         move 0 to d
         if b >= 0 then
           perform until b not = 0
      *  b>=0 &&   x = m * 2**b * 10**d   0.1 <= m < 1     
             multiply 2 by m
             subtract 1 from b
             if m >= 1 then
               divide 10 into m
               add 1 to d
             end-if
           end-perform
         else
           perform until b = 0
      *  b<0 &&  x = m * 2**b * 10**d   0.1 <= m < 1     
             divide 2 into m
             add 1 to b
             if m < 0.1 then
               multiply 10 by m
               subtract 1 from d
             end-if 
           end-perform
         end-if
      * now m ist the result
        end-program convert.

Messung V0.5 in Prozent
C=88 H=100 G=94

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-14) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik