|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 1051 (0x41b)
Types: TextFile
Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
└─⟦129cab021⟧ »DATA«
└─⟦this⟧
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
└─⟦d65440be7⟧ »DATA«
└─⟦this⟧
with Text_Io;
package body Money is
Moneyindex : Float range 0.0 .. 3.0 := 1.0;
function Creer (X : Float) return Object is
begin
return Object (X);
end Creer;
function "+" (Left, Right : Object) return Object is
begin
return Object (Float (Left) + Float (Right));
end "+";
function "-" (Left, Right : Object) return Object is
begin
return Object (Float (Left) - Float (Right));
end "-";
function Changemoney (X : Object; What : Float) return Float is
begin
return Float (What * Float (X) * Moneyindex);
end Changemoney;
procedure Devaluate (Percent : Float) is
begin
Moneyindex := Moneyindex * (1.0 - (Percent / 100.0));
end Devaluate;
procedure Reevaluate (Percent : Float) is
begin
Moneyindex := Moneyindex / (1.0 - (Percent / 100.0));
end Reevaluate;
procedure Put (X : Object) is
package Money_Io is new Text_Io.Fixed_Io (Num => Object);
begin
Money_Io.Put (X);
end Put;
end Money;