mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
MISC: Improve help text of expr command (#2561)
This commit is contained in:
@@ -218,15 +218,18 @@ export const HelpTexts: Record<string, string[]> = {
|
|||||||
expr: [
|
expr: [
|
||||||
"Usage: expr [mathematical expression]",
|
"Usage: expr [mathematical expression]",
|
||||||
" ",
|
" ",
|
||||||
"Evaluate a simple mathematical expression. Supports native JavaScript operators:",
|
"Evaluate a simple mathematical expression. Supports native JavaScript operators:",
|
||||||
" ",
|
" ",
|
||||||
"+, -, /, *, **, %",
|
"+, -, /, *, **, %",
|
||||||
" ",
|
" ",
|
||||||
"Example:",
|
"Example:",
|
||||||
" ",
|
" ",
|
||||||
" expr 25 * 2 ** 10",
|
" expr 25*2",
|
||||||
|
` expr "25 * 2 ** 10"`,
|
||||||
" ",
|
" ",
|
||||||
"Note that letters (non-digits) are not allowed and will be removed from the input.",
|
`Except for the dot ("."), parentheses ("(" and ")"), and the letters "e" and "E" (used for scientific notation), `,
|
||||||
|
`most non-digit characters are not allowed and will be removed from the input.`,
|
||||||
|
"Some edge cases may need to be enclosed in quotes to evaluate correctly.",
|
||||||
" ",
|
" ",
|
||||||
],
|
],
|
||||||
free: [
|
free: [
|
||||||
|
|||||||
Reference in New Issue
Block a user