Skip to content
Discussion options

You must be logged in to vote

Hello @bjnobre ,

While I am very sympathetic to the use of the decimal comma, there is a significant barrier to doing so in calc.

Calc is a C-style arbitrary precision calculator. As with C, the calc language uses the comma "," as a fundamental operator.

Consider the following function call:

; round(2.7)
	3

Consider what would happen if that 2.7 were written with the decimal comma:

; round(2,7)
	2                          <<== DIFFERENT value is returned!

This is because the round function takes optional arguments, separated by comma ",";s,
In this case 7 becomes number of places to round.

Moreover consider how awkward it would be if the decimal comma were enabled and
one wanted to round

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SirWumpus
Comment options

@SirWumpus
Comment options

@lcn2
Comment options

lcn2 Mar 29, 2026
Maintainer

Answer selected by lcn2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants