bpipe icon indicating copy to clipboard operation
bpipe copied to clipboard

bpipe can not support division or divide function from groovy ?

Open WinterLi1993 opened this issue 8 years ago • 2 comments

Hi, I tried , def x = 26 def y = 10 def resultDiv = x.div(y) // or x / y but Bpipe can not support these codes from a groovy script !

WinterLi1993 avatar Dec 01 '16 09:12 WinterLi1993

Hi,

Can you say what you mean by it not supporting it? I made a script like this:

def x = 26
def y = 10
def resultDiv = x.div(y) 

println "Result = $resultDiv"

Then I ran it:

$ bpipe run test.groovy 
Result = 2.6

So I think it printed the correct result?

ssadedin avatar Dec 06 '16 02:12 ssadedin

it's right, thank you

WinterLi1993 avatar Dec 06 '16 05:12 WinterLi1993