Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > ipMonitor > Numerical values are being returned as strings. How do I interpret them as integers?

Numerical values are being returned as strings. How do I interpret them as integers?

Table of contents
No headers
Created by Interspire Import, last modified by MindTouch on Jun 23, 2016

Views: 4 Votes: 0 Revisions: 7

Use a regular express that is looking for a string numbers that fall within the desired range. For example, if you wanted to monitor the temperature on a device in order to make sure it is between 65 and 75 degrees Farenheight and the value was coming in as a string, you would use the following regular express pattern: ([6][5,6,7,8,9]|[7][0,1,2,3,4,5])

Last modified
19:36, 22 Jun 2016

Tags

Classifications

Public