Quantcast
Channel: Treat all numbers as floats - Emacs Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by Tobias for Treat all numbers as floats

For numeric calculation there is a parallel universe within Elisp: Calc.The division operator / within defmath works with the floating numbers of Calc.Nevertheless, the interface of Calc with the Elisp...

View Article



Answer by Tobias for Treat all numbers as floats

The following Elisp code demonstrates how you can define your own wrapper macro with-float/that treats all explicit occurences of / in its body as division of floats.Division operators that are used in...

View Article

Treat all numbers as floats

Is there a way to get elisp to automatically treat all numeric variables as floating points without having to repeatedly use the float function?For example to a division function that outputs the...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images