Skip to main content Link Search Menu Expand Document (external link)

Processing - parseInt

Table of contents
  1. 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.