Crates.io | bigfactorial |
lib.rs | bigfactorial |
version | 0.1.2 |
source | src |
created_at | 2021-01-24 06:38:18.215261 |
updated_at | 2021-01-24 06:39:32.939778 |
description | Precalculated compile-time factorial macro for numbers upto 99. |
homepage | |
repository | https://github.com/littledivy/bigfactorial |
max_upload_size | |
id | 345925 |
size | 11,909 |
bigfactorial
Tiny compile-time macro for calculating factorial of numbers upto 99 with
num_bigint
.
Results are shipped precalculated.
usage
use bigfactorial::fact;
use num_bigint::BigInt;
fact!(45)?; // Bigint(119622220865480194561963161495657715064383733760000000000)
MIT license