"decimal".decimal implementa las operaciones aritméticas principales para números de tipo entero largo.
#include <iostream>
#include "BigNum.h"
#include <cstdlib>
#include <cctype>
Ir al código fuente de este archivo.
Definiciones | |
| #define | decimal_h |
| Evita la inclusión múltiple. | |
Funciones | |
| bool | operator== (const decimal &x, const decimal &y) |
| ¿ x == y ? | |
| bool | operator< (const decimal &x, const decimal &y) |
| ¿ x < y ? | |
| bool | operator> (const decimal &x, const decimal &y) |
| ¿ x > y ? | |
| bool | operator!= (const decimal &x, const decimal &y) |
| ¿ x != y ? | |
| bool | operator<= (const decimal &x, const decimal &y) |
| ¿ x <= y ? | |
| bool | operator>= (const decimal &x, const decimal &y) |
| ¿ x >= y ? | |
| ostream & | operator<< (ostream &COUT, const decimal &r) |
Graba el valor de "r" en el flujo "COUT". | |
| istream & | operator>> (istream &CIN, decimal &r) |
Lee del flujo de texto "CIN" el valor de "r". | |
| decimal | operator+ (const decimal &x, const decimal &y) |
"x+y". | |
| decimal | operator- (const decimal &x, const decimal &y) |
"x-y". - Calcula y retorna la resta "x-y". | |
| decimal | operator * (const decimal &x, const decimal &y) |
"x*y". | |
| decimal | operator/ (const decimal &x, const decimal &y) |
"x/y". | |
| decimal | operator% (const decimal &x, const decimal &y) |
"decimal".decimal implementa las operaciones aritméticas principales para números de tipo entero largo.
Definición en el archivo decimal.h.
|
|
Evita la inclusión múltiple.
|
|
||||||||||||
|
¿ x == y ?
|
|
||||||||||||
|
¿ x < y ?
|
|
||||||||||||
|
¿ x > y ?
|
|
||||||||||||
|
¿ x != y ?
|
|
||||||||||||
|
¿ x <= y ?
|
|
||||||||||||
|
¿ x >= y ?
|
|
||||||||||||
|
Graba el valor de
|
|
||||||||||||
|
Lee del flujo de texto
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
1.4.1