Skip to main content

V1 - Utility Functions - parseInt

parseInt

  • A=parseInt(StringA)

The command parseInt converts strings to integers.

Example:

search {from="-25h<h", to="-1h>h"} sContent("@source","surf-soho-6ccb")
let sent=f("@fields.bytes_sent"),recvd=f("@fields.bytes_recvd")
let sent2=parseInt(sent),recvd2=parseInt(recvd)

After the numbers converted to integers, computation can be made.