HOME
NEWS
REVIEWS
FEATURES
FILES
FORUMS
Philips Pronto Professional Forum - View Post
Find remotes at:
Read more news »
Acoustic Research Xsight Touch ARRX18G
Sony PlayStation 3 Advanced Control Roundup
Pinnacle PCTV HD Pro Stick HDTV Tuner
Universal Remote Control Inc. Digital R50
[
SEARCH
]
[
CONTACT
]
The following page was printed from RemoteCentral.com:
Forums
>
Professional
>
Philips Pronto Professional
View Single Message
Login:
Pass:
Register
Forum Search
Login
Original thread:
Lyngdorf MP-60 feedback
Post 8
made on
Tuesday October 12, 2021
at
10:06
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
View Profile
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.
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
View Code
View Normal
View the original thread...
©1998-2024, Daniel Tonks. All rights reserved.
Contact
|
Advertise
Home
|
News
|
Reviews
|
Features
|
Files
|
Forums
|
Search