CLR: .Net / Mono / Boo / Otros CLR > C#
Libreria Enteros Largos(Multiple Presicion Arithmetic Librar
(1/1)
juanillolc:
Hola, alguien tiene o sabe donde puedo encontrar una libreria que implemente los enteros largos...a ser posible en c#. Graciassss
juanillolc@hotmail.com
JuanK:
No necitas ninguna libreria en c#..
ya hay tipos de datos para enteros largos
--- Código: Text --- byte 1 Byte Unsigned (values 0-255).char 1 Char Unicode characters.bool 1 Boolean true or false.sbyte 1 Sbyte Signed (values -128 to 127).short 2 Int16 Signed (short) (values -32,768 to 32,767).ushort 2 Uint16 Unsigned (short) (values 0 to 65,535).int 4 Int32 Signed integer values between -2,147,483,647 and 2,147,483,647.uint 4 Uint32 Unsigned integer values between 0 and 4,294,967,295.float 4 Single Floating point number. Holds the values from approximately +/-1.5 *10-45 to approximate +/-3.4 * 1038 with 7 significant figures.double 8 DoubleDouble-precision floating point; holds the values from approximately+/-5.0 * 10-324 to approximate +/-1.7 * 10308 with 15-16 significantfigures.decimal 8 DecimalFixed-precision up to 28 digits and the position of the decimal point.This is typically used in financial calculations. Requires the suffix "m"or "M."long 8 Int64 Signed integers ranging from -9,223,372,036,854,775,808 to9,223,372,036,854,775,807.ulong 8 Uint64 Unsigned integers ranging from 0 to 0xffffffffffffffff.
juanillolc:
Si pero con esos tipos de datos no me es suficiente.Con ellos solo puedo usar enteros de 64 bits(ulong) y necesito poder usar enteros de muchos mas bits(estoy implementando un criptosistema). Ya he encontrado una libreria, se llama BigInteger.dll. Ahora mi pregunta es como hago para poder usarla. Ya he agregado una referencia a la libreria en el proyecto pero me da el error este : "No se puede encontrar el tipo o el nombre de espacio de nombres 'BigInteger' (¿falta una directiva using o una referencia de ensamblado?)". Tambien me gustaria saber si hay alguna forma de saber que metodos concretos hay en esa libreria. Muchas gracias por adelantado.
JuanK:
lamentablemente no conozco del tema, habria que buscar en internet.
juanillolc:
Ya encontre una. Se llama bigInteger.dll.Si alguien la necesita puede escribirme a nometienesjarto@hotmail.com
Un saludo
Navegación
Ir a la versión completa