doc: add examples of division in ${calc:...} (plugin API reference)

v2.8-utf8proc
Sébastien Helleu 2019-11-04 19:01:31 +01:00
parent 9264de9ce0
commit 07577194c5
4 changed files with 16 additions and 0 deletions

View File

@ -2584,10 +2584,14 @@ expanded to last):
`+**+`: power. |
`+${calc:5+2*3}+` +
`+${calc:(5+2)*3}+` +
`+${calc:10/4}+` +
`+${calc:10//4}+` +
`+${calc:9.2%3}+` +
`+${calc:2**16}+` |
`+11+` +
`+21+` +
`+2.5+` +
`+2+` +
`+0.2+` +
`+65536+`

View File

@ -2632,10 +2632,14 @@ première étendue à la dernière) :
`+**+`: puissance. |
`+${calc:5+2*3}+` +
`+${calc:(5+2)*3}+` +
`+${calc:10/4}+` +
`+${calc:10//4}+` +
`+${calc:9.2%3}+` +
`+${calc:2**16}+` |
`+11+` +
`+21+` +
`+2.5+` +
`+2+` +
`+0.2+` +
`+65536+`

View File

@ -2691,10 +2691,14 @@ expanded to last):
`+**+`: power. |
`+${calc:5+2*3}+` +
`+${calc:(5+2)*3}+` +
`+${calc:10/4}+` +
`+${calc:10//4}+` +
`+${calc:9.2%3}+` +
`+${calc:2**16}+` |
`+11+` +
`+21+` +
`+2.5+` +
`+2+` +
`+0.2+` +
`+65536+`

View File

@ -2602,10 +2602,14 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
`+**+`: power. |
`+${calc:5+2*3}+` +
`+${calc:(5+2)*3}+` +
`+${calc:10/4}+` +
`+${calc:10//4}+` +
`+${calc:9.2%3}+` +
`+${calc:2**16}+` |
`+11+` +
`+21+` +
`+2.5+` +
`+2+` +
`+0.2+` +
`+65536+`