DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦a362bef9d⟧ TextFile

    Length: 824 (0x338)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;
package body Formate is
    function Inttostr
                (Unnombre : Natural; Nbchiffres : Positive) return String is
        Unechaine : String (1 .. Nbchiffres + 1);
        Nbre : Natural := 0;
        Nbaux : Natural := Unnombre;
    begin
        if Nbaux = 0 then
            Nbre := 1;
        else
            while Nbaux /= 0 loop
                Nbaux := Nbaux / 10;
                Nbre := Nbre + 1;
            end loop;
        end if;
        Unechaine (1 .. Nbre + 1) := Integer'Image (Integer (Unnombre));
        Unechaine (1) := '0';
        if Nbre = Nbchiffres then
            return Unechaine (2 .. Nbre + 1);
        else
            return String'(1 .. Nbchiffres - Nbre - 1 => '0') &
                      Unechaine (1 .. Nbre + 1);
        end if;
    end Inttostr;
end Formate;