Jump to content
groovyPost Forums

Groovy script throwing errors


Recommended Posts

Hi Team,

Please help me to get this issue resolved in the groovy script.

Error in below line :

 [Static type checking] - Cannot find matching method java.lang.Math#round(java.math.BigDecimal). Please check if the declared type is correct and if the method exists.
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random()

String timestamp = Math.round(new Date().getTime()/1000).toString()

Hydrant errors script.docx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Who's Online   0 Members, 0 Anonymous, 5 Guests (See full list)

    • There are no registered users currently online
  • Create New...