ahojte,
chtel bych se zeptat kdyz potrebuji jeste vetsi datovy typ nez je decimal co delat?
nevite nekdo o nejake verejne strukture nebo tride na internetu ktera to umi (staci mi celociselny typ)?
dekuji za odpoved.
Fórum › .NET
Vetsi datovy typ nez decimal

BigInt
tak jestli to tusim dobre tak BigInt je 64b a decimal je 128b tak je mensi. Spis jsem myslel nejakou strukturu jestli nevite co koluje na internetu, ktera by se o to postarala sama se zvetsovala a vse s tim spolecny.
BigInteger teoreticky nemá žádnou nejnižší ani nejvyšší hodnotu. Je součástí .NET 4, ale samozřejmě ho lze sehnat i pro současné verze .NETu http://msdn.microsoft.com/en-us/library/system.numerics.biginteger(VS.100).aspx. Pokud to nestačí, tak asi chybně chápu pojem "větší".
no pracuji na programu pro matematiku ted zpracovavam kombinatoriku a kdyz treba vyberu sto znaku a 14. tridu variace s opakovanim tak dostavam jeste vetsi cislo nez je decimal ale asi to vyresim tak ze tam napisu ze je to proste vic nez maximalni hodnota decimal a bude
To jirka : asi by som to tak skusil, ale pomocou:
struct VelkeCislo
{
decimal a; // koli tomu aby sa neprepisalo daco predtym
public decimal Cislo; // ale neviem ci nahodou sa dlhsie cislo nenapise za toto, cize ci nema byt "a" az po tomto
}

Přidej příspěvek
Ano, opravdu chci reagovat → zobrazí formulář pro přidání příspěvku
×Vložení zdrojáku
×Vložení obrázku
×Vložení videa
































Uživatelé prohlížející si toto vlákno
Podobná vlákna
Jak vytvořit vlastní datový typ větší než double nebo integer? — založil spider-x
Soubor je větší než ukládaná struktura — založil Štěpán
Dátový typ — založil zonda
Datový typ — založil Rade.k
Jak zjistit velikost souboru, ktery je vetsi nez upload_max_filesize — založil TomášJančík
Moderátoři diskuze