Module money_op_pycalcar :: Class money_op
[hide private]
[frames] | no frames]

Class money_op

source code

:

EXPLANATION

Allow to execute operations on money

FUNCTIONS

f_base_convert

Convert a mount into base unit

f_total_convert

Convert a base unit into different unit of a money

f_add_money

Make an add operation

f_sub_money

Make a substract operation

f_mult_money

Make a multiplion operation

f_div_money

Make a division operation

Instance Methods [hide private]
 
__init__(self) source code
 
f_base_convert(self, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
 
f_total_convert(self, base, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
 
f_add_money(self, u10, u11, u12, u13, u14, u15, u16, u17, u18, u19, u20, u21, u22, u23, u24, u25, u26, u27, u28, u29, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
 
f_sub_money(self, u10, u11, u12, u13, u14, u15, u16, u17, u18, u19, u20, u21, u22, u23, u24, u25, u26, u27, u28, u29, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
 
f_mult_money(self, mult, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
 
f_div_money(self, div, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
Method Details [hide private]

f_base_convert(self, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

EXPLANATION

Convert a mount into base unit

PARAMETERS

u0 => u9

Mount in the different units of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

Mount in the base unit of the money

f_total_convert(self, base, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

EXPLANATION

Convert a base unit into different unit of a money

PARAMETERS

base

Mount in the base unit of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

Mount in the different units of the money

f_add_money(self, u10, u11, u12, u13, u14, u15, u16, u17, u18, u19, u20, u21, u22, u23, u24, u25, u26, u27, u28, u29, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

EXPLANATION

Make an add operation

PARAMETERS

u10 => u19

First line of operation, in the different units of the money

u20 => u29

Second line of operation, in the different units of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

Sum of the two lines in the different units of the money

f_sub_money(self, u10, u11, u12, u13, u14, u15, u16, u17, u18, u19, u20, u21, u22, u23, u24, u25, u26, u27, u28, u29, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

EXPLANATION

Make a substract operation

PARAMETERS

u10 => u19

First line of operation, in the different units of the money

u20 => u29

Second line of operation, in the different units of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

Difference between first & second line, in the different units of the money

f_mult_money(self, mult, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

EXPLANATION

Make a multiplion operation

PARAMETERS

mult

Value of the multiplicator

u0 => u9

Mount in the different units of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

Result of the multiplication operation, in the different units of the money

f_div_money(self, div, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

EXPLANATION

Make a division operation

PARAMETERS

div

Value of the divisor

u0 => u9

Mount in the different units of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

Result of the division operation, in the different units of the money, & the rest of the division