CCalc 2.4.0.290

Published by

CCalc gives you an efficient Command Line calculator that offers a wide range of functions, including arithmetic operations, algebraic calculations, and Boolean functions.

CCalc 2.4.0.290

CCalc gives you an efficient Command Line calculator that offers a wide range of functions, including arithmetic operations, algebraic calculations, and Boolean functions.

Perform a wide range of calculations without the need for a graphical interface using CCalc. This Command Line tool enables you to conveniently perform calculations directly from the command line. When you download CCalc, you will receive Help.txt files that contain crucial usage information.

Whether you need to perform simple calculations or other mathematical tasks, CCalc's versatile capabilities are designed to meet your needs.

To help you get started quickly, we have provided an overview of the content below.

CMD Syntax:

CCalc64 [options]
CCalc64 [-b] [-z] [-u|--np] [-d[:#]] [-p] [-s] [-f [format_text]
CCalc64 [-b] [-z] [-u|--np] [-d[:#]] [-p] [-s] [[--hex|--bin|--oct] [-n] [--ml] [--bs]]

CCalc64 [options]
CCalc64 [-b] [-s]

CCalc64 [-h|-?|--h2|--??] [-v]
CCalc64 [-i|--Info|--Version-Only]

Option Definitions:

-b, --banner .............. Display banner information on each program execution
-z, --zero ................ Evaluate any invalid operands which are provided as zero
-f, --format .............. Display decimal output with a custom format (Default = #,##0.#)
-d, --decimal-places ...... Controls the decimal places of fractional results (Default = 2)
-u, --use-zeroes .......... Show all output with the significant decimal places (Zero Padding)
--np, --no-padding .... Turn off zero padding for the resulting calculation
-p, --percent ............. Convert the results an arithmetic calculation to a percentage
-s, --show-expression ..... Display the full expression that is being evaluated
--bin, --binary ...... Display calculation result as a binary number
--oct, --octal ........ Display calculation result as an octal number
--hex, --hexadecimal .. Display calculation result as a hexadecimal number
--ml, --min-length .... Set minimum string length for numeric value
--bs, --block-size .... Set the block size for a space separator when displaying a number.
-n, --no-prefix ........... Do not display the prefix for Bin (%), Oct (&), or Hex (0x) output
-v, --verbose, --build .... Display extended build information, plus application exit/return codes
-h, --help, -? ............ Display this help message
--h2, --??, --help2 ... Display extended help information, plus exit/return codes
-i, --info ................ Display banner and build information, then exit
--version-only ........ Display build information without banner, then exit
--audible-error ....... Enable a beep on syntax error
--error-delay ......... Enable a ~7 second delay on syntax error
--debug-mode .......... Enable debug mode, which includes enabling Audible Error and Error Delay

General Usage Notes:

* Entering CCalc64 with no parameters will display this help message
* Parameters surrounded by are mandatory; Those surrounded by [] are optional
* Parameters are case-insensitive but may be shown in uppercase for clarity
* Single-character parameters (e.g. -h) can be prefaced by "-" or "/"
* Multi-character parameters (e.g. --help) should be prefaced by "--"
* All parameters need to be separated from each other by at least one space
* The -H, --?? --Version-Only and --Info parameters supersede all other options -- in that order
* The -V parameter causes application build mode info to be shown whenever the banner is shown
* Combining -H/-? and -V will display extended help info plus application exit/return codes
* The --?? parameter behaves like the -H/-? and -V parameters combined
* The -I parameter will ONLY show the banner, with build info, and quit. It will process no other data
* The application banner is only displayed when Help Syntax is displayed or when -B is used

App Specific Notes:

* Floating point results will be shown to six significant decimal places by default
* Using /D changes the decimal places to 2 unless an optional number is supplied in the format of /D:#
* /D automatically implies /U; Use /NP with /D if you do not want zero padding to occur with /D
* /F supersedes /D if both are used together and provides greater granularity in displaying decimal values
* Compound parameters like /F and /D can be provided as: /F "value" OR /F:"Value" OR /F="Value".
* /NP supersedes /U if both options are provided
* /Z is particularly useful in shell scripts where you want to ensure that you always have a valid value
* Be advised that "PI" is a valid variable name and will not be converted to 0 if using the /Z parameter
* Logical operators MUST be surrounded by quotation marks; optional for arithmetic operators (except "^")
* Alternative names for several arithmetic operators are supported as follows
* Modulus ............................ MOD, %% -- NOTE: Changed from "%"
* Integer Division (w/o remainder) ... DIV, //
* To the Power of .................... PWR, **, ^

* Binary, Octal and Hexadecimal values are supported in equations when using their respective prefixes: %, &, $
* Use --Bin, --Oct, and --Hex to display calculation results in Binary, Octal, or Hexadecimal, respectively
* If more than one of the above parameters is used, precedence will go to the first one in the line
* If any of the above parameters is used, the /U parameter will be ignored
* Hexadecimal numbers can be prefixed by either "$" or "0x" (e.g. "$FE" or "0xFE")
* Block size (--block-size) is primarily used as a separator for binary and hexadecimal numbers
* Minimum block size is Bin=2, Oct=2, Hex=2; Minimum length is Bin=2, Oct=1, Hex=1

* Complex boolean expressions involving multiple NOT, AND, OR, and XOR operands are allowed
* Only ONE boolean comparison involving "= != < >=" can be evaluated in a single expression
* The % character needs to be doubled when execution occurs in a Windows shell script
* Operands that contain any of the following characters should be enclosed in double quotes to avoid
being processed incorrectly by the operating system: ! < > ^ & %
* Double quotes may be placed around the individual operator/operand, or around the entire expression

Exit/Return Codes:

* Exit/Return Codes will be generated for the following conditions:

-2 - Boolean Comparison is FALSE
-1 - Boolean Comparison is TRUE
0 - Command Completed Successfully
64 - Missing Necessary/Essential Parameters
80 - Various Expression Evaluation Errors
81 - Divide by Zero Error
82 - Invalid Operators for Integer Division
83 - More than One Boolean Comparison Attempted
84 - String to Integer Conversion Error
85 - Invalid Binary Character Found
86 - Invalid Octal Character Found
87 - Invalid Hexadecimal Character Found
255 - Syntax Help Requested

For more details, see: CCALC /??

Similar:
The Ultimate List of Every Known Command Prompt and PowerShell Commands
PowerShell and Command Prompt 101
10 Ways to Open the Command Prompt in Windows 11

CCalc 2.4.0.290