Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 8 made on Tuesday October 12, 2021 at 10:06
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
You can use a RegExp to match the string or use String subString to extract the "-205".

The end result is you need to convert this value to an integer and divide this value by 10 and display using toFixed(1).

var textThatHasBeenExtracted = "-205";
var int = parseInt(text,10).toFixed(1);

This is where you need to find a good RegExp and JavaScript reference such as W3Schools.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse