Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion factorion-bot-discord/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DISCORD_TOKEN=your_discord_bot_token_here
# FLOAT_PRECISION=100
# UPPER_CALCULATION_LIMIT=10000
# UPPER_APPROXIMATION_LIMIT=100000
# UPPER_SUBFACTORIAL_LIMIT=10000
# UPPER_SUBFACTORIAL_LIMIT=100000
# UPPER_TERMIAL_LIMIT=10000
# UPPER_TERMIAL_APPROXIMATION_LIMIT=1073741822
# INTEGER_CONSTRUCTION_LIMIT=100000000
Expand Down
4 changes: 2 additions & 2 deletions factorion-bot-discord/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "factorion-bot-discord"
version = "2.2.2"
version = "2.2.3"
edition = "2024"
description = "factorion-bot (for factorials and related) on Discord"
license = "MIT"
Expand All @@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "bot", "math", "discord"]
categories = ["mathematics", "web-programming", "parser-implementations"]

[dependencies]
factorion-lib = { path = "../factorion-lib", version = "4.2.2", features = ["serde", "influxdb"] }
factorion-lib = { path = "../factorion-lib", version = "4.2.3", features = ["serde", "influxdb"] }
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "cache"] }
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread", "time"] }
dotenvy = "^0.15.7"
Expand Down
4 changes: 2 additions & 2 deletions factorion-bot-reddit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "factorion-bot-reddit"
version = "5.3.2"
version = "5.3.3"
edition = "2024"
description = "factorion-bot (for factorials and related) on Reddit"
license = "MIT"
Expand All @@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "bot", "math"]
categories = ["mathematics", "web-programming", "parser-implementations"]

[dependencies]
factorion-lib = {path = "../factorion-lib", version = "4.2.2", features = ["serde", "influxdb"]}
factorion-lib = {path = "../factorion-lib", version = "4.2.3", features = ["serde", "influxdb"]}
reqwest = { version = "0.12.28", features = ["json", "native-tls"], default-features = false }
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
serde_json = "1.0.140"
Expand Down
2 changes: 1 addition & 1 deletion factorion-bot-reddit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ INFLUXDB_TOKEN=<token>
FLOAT_PRECISION=<the_precision_floats_use> 1024
UPPER_CALCULATION_LIMIT=<maximum_number_to_precisely_calculate> 1000000
UPPER_APPROXIMATION_LIMIT=<maximum_number_to_approximate_exponent> 300
UPPER_SUBFACTORIAL_LIMIT=<maximum_number_to_precisely_calculate_subfactorial> 1000000
UPPER_SUBFACTORIAL_LIMIT=<maximum_number_to_precisely_calculate_subfactorial> 100000
UPPER_TERMIAL_LIMIT=<maximum_number_to_precisely_calculate_termial_exponent> 10000
UPPER_TERMIAL_APPROXIMATION_LIMIT=<maximum_number_to_approximate_termial_bits> 1073741822
INTEGER_CONSTRUCTION_LIMIT=<maximum_integer_to_parse_exponent> 100000000
Expand Down
2 changes: 1 addition & 1 deletion factorion-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "factorion-lib"
version = "4.2.2"
version = "4.2.3"
edition = "2024"
description = "A library used to create bots to recognize and calculate factorials and related concepts"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion factorion-lib/src/calculation_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub mod recommended {
pub static UPPER_APPROXIMATION_LIMIT: fn() -> Integer =
|| Integer::u64_pow_u64(10, 300).complete();
// Limit for exact subfactorial calculation, set to limit calculation time
pub static UPPER_SUBFACTORIAL_LIMIT: fn() -> Integer = || 1_000_000.into();
pub static UPPER_SUBFACTORIAL_LIMIT: fn() -> Integer = || 100_000.into();
// Limit for exact termial calculation, set to limit calculation time (absurdly high)
pub static UPPER_TERMIAL_LIMIT: fn() -> Integer = || Integer::u64_pow_u64(10, 10000).complete();
// Limit for approximation, set to ensure enough accuracy (5 decimals)
Expand Down
Loading