Formula in numeric fields

4.0
Formula in numeric fields
0
Tags: #<Tag:0x00007f4a044fb488>

(François Genestin) #1

Just enter a simple expression in a numeric field starting with the equal sign
=3*5+2
Then enter or change focus to evaluate the expression.
17

It supports javascript syntax, for examples :

=2*Math.PI*5
31.41593

=Math.log(1024)/Math.log(2)
10

=(function(r) { return 2*Math.PI*r; })(5)
31.41593