Text to number and decimalSeparator

Hi, I need to convert a text (in a textImput) to Number.
Some times the user type: 1000.10 or 1000,10 do represent the
same number (one thousand and 10 cents)
the problema is that 1000,10 gives me NaN using the simple
way: Number(mytxt.text)
How can I solve this problem?

If there is no thousands separator (Like: english 1,000.00
represents one thousand; spanish/german: 1.000,00 represents the
same thousand):
I'd replace the comma with a decimal point (using indexOf to
find it), and later use Number() to convert:
s = textInput.text;
if (s.indexOf(",") != -1)
s = s.substr(0, s.indexOf(",") + "." +
s.substr(s.indexOf(",")+1, s.length - 1 - s.indexOf(",");
number = Number(s);
I hope is readable :-), and helps

Similar Messages

  • Split  text into  number and  text

    Hi ,
    My problem is something like this....." 5 feet 6 inch ". This
    is a single string(varchar). since i cannot calculate value (6*5)
    here .i need to make it taking from database separate. And later
    calculate value.Is there any possibility throught which i can do
    something like that.?
    Thanks in advance.

    I could do it for that particular record, but unless every
    record has the same structure, it will be tough if not impossible.
    How is the data getting into the db to start with? If you are
    accepting free text, you might get values like five ft seven, five
    and a half ft, etc.
    Is it too late to re-design the db so that you have a numeric
    field for that measurment?

  • Verizon bill showing I texted 8012222269 internationally and I did not

      Good evening,
    Some back-story:
    Ever since the "premium messaging" debacle I was involved in with regard to text messaging on my LG Env3 I have reviewed closely all text message charges on my Verizon bill. On the LGE3 I received some spam text messages from some number and ignored them; not understanding I was being charged for these messages I was receiving. I had contacted Verizon before about this issue several months ago because I thought my phone bill was unusually high. The customer representative said it was my premium messaging. Foolish me was thinking ok maybe I sent some high mgb texting or something but the Verizon rep didn't go into any other explanation than that. This went on for a few months more then I finally got ticked seeing $9.99 on my bill for the past few months and I contacted customer support again and this time this Verizon agent informed me that somehow some way my number was obtained from a third party even when I was not aware of it and I must have signed up for some service. I informed him I would never authorize someone to charge me $9.99 on my Verizon bill if I had no idea what service I was getting. He said that this was considered premium messaging which is a nice fancy way of saying 3rd parties can bill you via your Verizon bill for "services" you may not even know you are receiving just because somehow your number got in a roster of contacts that these scheming places use. I googled the number of where the messages were originating and it said something about "Fonesocial" or some such I had never heard of before. The Verizon rep this time said that they could place a block on all premium messaging on my phone and they agreed to credit back six months of these charges because I had called about them before and was offered no assistance or explanation by the customer agent i spoke with several months back when the charges first appeared. (Normally I get good customer service support from Verizon but there are times I get people who are not worth wasting my breath on) Another thing Verizon doesn't state up front is that your phone isn't automatically set to default of blocking third party messaging. You have to take the initiative to do it rather than it being set up that way to begin with which I think is a huge inconvenience and unfair to the customer because you shouldn’t have to go through a mess and receive extra charges before realizing “premium messaging” in Verizon language means “we are going to let 3rd parties text you absolute junk and charge you crazy fees then pay them while we charge your bill oh and by the way we don’t really bother to ask you if you are aware of how you got signed up for this 3rd party’s service or if you even know what you are getting”
    Now....to my current issue that I wonder if anyone else has...In October I upgraded to the Apple Iphone 4. I was reviewing my recent bill and noted that I incurred $2.50 of text message charges when I have an unlimited text plan. The bill charge details gave off the appearance that these were international text messages. My thought was that when I switched to the iphone and changed data plans my block of premium messaging got removed and I was incurring text messages from this number. I called and spoke with a Verizon customer service rep today and she said that the messages were sent from my phone. I informed her I did not send the messages I do not know anyone internationally and I would not be texting internationally. I asked if I had the premium message block on and she said that yes the block was still on and she could block me from receiving text messages and calls but that she could not place a block on a text message I sent. I said again, ma’am I did not send these. She said she would try to get me some type of customer courtesy credit for the $2.50 and I said it is $2.50 that’s not a lot but my point I’m trying to make is that I did not text this number I do not know this number and you can’t tell me what was said to this number in text messages that are stated to be originating from my phone number. The first text message from my bill began on November 26th. I was flying that day…landed in Orlando Intl. airport. Then the 4th of December, two on the 13th of Dec, one on Dec 16th one on the 23rd 3 on 12/24 and one on 12/25. I asked Verizon rep if someone could have hacked my phone and she said if my number was cloned I would have incurred all sorts of phone charges on my Verizon bill so my number would not have been cloned. She said maybe someone got my phone and sent the messages I told her I keep my phone with me at all times and it’s locked. I expressed the concern of what the messages may have said given my current employment situation the thought of having messages fired off to a supposed international number referencing my number as origination point and my not knowing what the messages said causes me great concern. I could tell the Verizon rep was getting irritated with me and I was getting irritated though I kept saying I was not upset with her personally as I knew she was just doing her job but either there was a data validity issue with the Verizon billing service or someone was able to somehow send text messages referencing my number and that was what concerned me how my number could be co-opted like that and Verizon just bill me. She said that I would have to get court order subpoena for them to see what the messages said. She said that at first she thought I was just crazy and then apologized for telling me that but then she realized I must really be upset based on the tone in my voice and I wasn’t just trying to get out of $2.50 charge. I said I was very upset because there’s no explanation being provided as to how Verizon records show I sent texts to a number and I didn’t send them. These were a quarter a pop. Next month what if there are even more $$ involved.  She said she had not had any other complaints like this before but did grant me the $2.50 credit after speaking to her supervisor. Still no explanation from Verizon and I had to say over and over again to the representative that I did not send these messages and there is no way anyone could have just picked up my phone and sent them. I understand that customer agents have to be skeptical of callers saying they didn't do something to incur a charge but I have been a Verizon customer for almost ten years now and I have better things to do than engage in an argument over $2.50 without good reason. I Googled the number 8012222269 and found several people complaining about receiving messages from this number but no one stating that they have been accused (via billing) of SENDING messages to this number. Has anyone else been saddled with charges of text messages to a number they did not send and HOW technically speaking is this allowed to happen? How is this NOT a data validity issue? I am well aware there are people who will take a phone and text but based on the dates and times referenced on my bill detailed charges it is just not possible. I was in a plane in the air when the first message was sent on 11/26 and I had my phone off.  To add insult to injury I think the Verizon rep still things I'm just making a big deal out of this and I MUST have texted this number and just didn't realize it or someone obtained my phone and did it. In other words...no problem on their end I'm just a nut but they appreciate my patronage so they will extend a courtesy credit for $2.50. I have to say...as much as I like to laugh at the AT&T people in my office that have service bars when I've got this great Verizon coverage...I feel a bit kicked in the teeth. Otherwise I would have never signed on to this forum for discussion.  And look, I want honest people who have been having issues with this please if you want to come on here and spam/flame me about how I am too stupid and need to read fine print blah blah just jump off a log I am not going to respond to you and you will not get a rise out of me. The issue here is text messages coming from MY number showing up on MY bill that I DID NOT and could not have sent.  Thanks. 

    You said "The messages i received when i did not have signal are not showing up."
    How do you know received them?
    If the sender got a message that the Messagers were not delivered than they were never delivered and the only way for you to get them is for the sender to resent them

  • Cannot text one number

    I can not text one number and it is driving me crazy!!  I recieved a message that says "you can only send messages to fixed dialing numbers".  I do not know what that means.  I can send texts to Verizon, and T-Mobile phones.  I can send and recieve calls from the number but I can not text.  
    This is recent that this has happened.  I was able to send and recieve texts from this one numbers, but it seems as of OCtober, I can not.  
    Is anyone else having this issue??  It is truely driving me crazy!!

    Try checking Menu / Settings / Call Settings / FDN and make sure fix dialing option isnt enabled, if this is on this can restrict in and out going items.. 
    Another thing to check with Verizon and make sure no restrictions is setup on your accounts or you can check and make sure you havent added that number to the block list on the MyVerizon area of your account.

  • How can I set up an SMS group so that all group members can dial a group number and have a text sent out to all members of the group

    How can I set up an SMS group so that all group members can dial a group number and have a text sent out to all members of the group
    This would be an SMS group similar to an email listserv but running on the SMS network
    I have seen private individuals offering this service
    It seems strange to me that no internet site like Apple, Yahoo or Google offers this as a free service much as the email group services are free services.
    Steve

    I think the app GroupMe might do what you want. You might also try contacting your carrier. My carrier offered some fancy group texting service for a while but they never really advertised it so, unless you asked, you never would have known. But, GroupMe is available in the app store. There are lots of other apps that also do group texting but it seems to be the one that gets recommended the most.

  • My iMessage is stuck on the wrong phone number and I keep getting coded text messages from SMS Info.

    I recently switched the sim card in my iPhone when I moved from one country to another. When I put my local sim card in iMessage would not activate (just staying on 'waiting for activation' forever). This has not been a problem before. When I went to send/receive I saw the phone number there is still on the old one from the country I left. This is not the case in phone settings when I look for 'my phone number' or in facetime, which recognise the new number.
    Plus I keep getting text messages from 'SMS Info'. They are just code, except that in there my new phone number is included among the code. The only other discernible characters are the letters 'REG-RESP?'. Perhaps this is something to do with an error in registering my new number.
    I have tried-
    1. Turning it off and on again.
    2. Turning iMessage off and on again. This results in the usual 'it may cost you to reactivate with an SMS' popup on my phone screen, then a popup saying there has been a mistake, then one of these coded SMS messages.
    3. Doing the above in combination with logging in and out of my apple id (as suggested on another forum post here)
    4. Removing the new sim card and replacing the old one. Then turning off iMessage, replacing the new sim card and turning iMessage back on (of course powering the phone down and up)
    None of these remedies have worked. The iMessage problem is affecting all sorts of my messages. Windows keep popping up saying that I may have to pay for an SMS to activate iMessage, except that it doesn't activate. The SMS messages from 'SMS Info' keep coming and I can't seem to get any of it to stop an just work normally.
    I have looked in these forums already and can't see the same problem elsewhere. If someone could figure this out I would be most grateful.

    Hi,
    When a Mac is "registered" for iMessages account with an Apple ID the Serial Number of the Mac is used to create an Auth Token as it is called for the Messages app that allows that Mac to work.
    I would guess a similar process of linking the Number of the iPhone to a Hardware fact about the device is also in place.
    I would contact Apple Support and check with them.  (you might need to speak to a Level 2 person as Level 1 people are script led and try to fit everything into Software or Hardware categories where as sorting and Apple ID (which the Number is in this case) is normally Free).
    I did find this iOS: Troubleshooting Messages - Apple Support
    It starts off about sorting SMS that is not working.
    This one has a bit on Unlinking an iPhone Number (with or without the iPhone) iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support
    7:55 pm      Tuesday; January 6, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • When I send a text using siri the recipient shows that the text came from my email. How do I fix that so it show that the text came from my phone number and not my email address?

    When I send a text using siri the recipient shows that the text came from my email. How do I fix that so it show that the text came from my phone number and not my email address?

    Settings > Messages > Send & Receive > Start new conversations from:
    Only your phone number is selected.

  • Populate header text with reference number and vendor name

    Hi Experts,
    My client wants to populate the line item text field - SGTXT in MIRO / FB60 with the reference number field XBLNR and the vendor name.
    Is it possible to do it before the invoice get posted?. Like, just after the user entered the vendor account number and the reference number in FB60 system picks the vendor name against the vendor number from LFA1 table and the reference number entered in FB60 screen and populates them in text field ?
    Similarly in MIRO - before the invoice get posted is it possible to pick the reference number from MIRO screen and pick the vendor name based on the PO number entered on the MIRO screen.
    Please advise how to do this.
    Thank you
    Shino

    Hi
    This can be achieved by using a User Exit in Substitution rule. This is done through GGB1. Define the rule
    Prerequisite
    (System T Code =FB01 or MIRO) and Account Type = K
    Substitution
    User Exit
    The following link will be of help to you to define a user exit in substitutition rule
    http://help.sap.com/saphelp_46c/helpdata/en/5b/d231a843c611d182b30000e829fbfe/content.htm
    Regards
    Sanil Bhandari

  • Report with Delivery number and header text as output

    Hello all,
    I need to create a "quick and dirty" report that which will give me every delivery number, and the corresponding header text, in the month of July for given shipping points.  I am having trouble figuring out how to get the header text for the deliveries.  I have searched and searched but the solutions given just don't make sense to me.
    Regards,
    Davis

    Hi,
    You need to use the function module READ_TEXT to read delivery header text.
    Please go to transaction SE75 and use VBBK as the OBJECT to find the specific ID which is required.
    Regards,
    Ferry Lianto

  • I text a friend, from my contacts and they text me back and only the number shows up on screen, not the name who it is from?

    I text a friend , from my contacts and they text me back and only there number shows up on the text???  So all day, i'm asking my friends in my contact list, who is this? If the lakes and rivers were not frozen here, my phone would be on the bottom of them!!!

    Are you with Verizon?  If you are take a look at the link and see if it helps
    http://discussions.apple.com/thread/3752984?tstart=30

  • How can I create a random number and letter in a text field...

    Hi All,
    I am using application express. I want to get a random number and letter for a text field but not sure how to do this. Say I have a licence form and I want to get the licence number automatically when user wants to create a new licence and it needs to be unique. The format I am looking for is - HQ2631 something like this.
    I am thinking I have to create a trigger but not sure how to go about this....
    advanced thanks,
    Tajuddin

    Something to play with:
    Your method can generate 26 * 26 * 10000 different licence_ids
    Generating one million ids takes 20 seconds but produces between 70000 and 80000 duplicates and is rapidly getting worse (if that is something over 7%, doubling the ids generated that grows to something under 30%)
    Just see if you can live with that.
    select sum(collisions) all_duplicates,count(*) distinct_duplicates,max(collisions) max_multiple
      from (select licence_id,count(*) - 1 collisions
              from (select DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999)) licence_id
                      from dual
                     connect by level <= :to_generate
             group by licence_id
             having count(*) > 1
           )Regards
    Etbin

  • Hi all when I send a text to a contact (iphone4s) the contacts name changes to a phone number and the name is lost. I then have to resave it again, googled it but can't see anyone with the same issue, any ideas ?

    Hi all when I send a text to a contact (iphone4s) the contacts name changes to a phone number and the name is lost. I then have to resave it again, googled it but can't see anyone with the same issue, any ideas ?

    There is another setting for "Start Conversation from", that needs to be set to phone number.

  • How can i see what number and  time a text message i received a text message

    how can i see what number and at what time i received a text message online

    If you are on a regular postpaid account, you can log in to your My Verizon account and see the usage details for your account.

  • What does it mean when you receive a text on your iphone 6 form your own number and the message is duplicated on each side (sent/recieved) and has "verizon message" with a long number at the end of the text, duplicated as well?

    what does it mean when you receive a text on your iphone 6 from your own number and the message is duplicated on each side (sent/received) and has "verizon message" with a long number at the end of the text, duplicated as well?

        Great question stacybrownie! Let's get to the bottom of this so that it's not a cause for concern. When a message is sent to/from your own number, it will display as one sent, one received. This makes it display two messages as you are seeing. Let's clarify the second part of your question. Where do you see "Verizon Message" exactly? What is the long number at the end of the text? When did this start and is it with all text messages or only this instance?
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • I hve unlocked iphone and got walmart family mobile. I was issued a phone number initially with phone and then I had them change it. Now when I send texts caller id people see is the original phone number, and when I call it is the new number.

    I have unlocked iphone and got walmart family mobile. I was issued a phone number initially then asked for a different one. Now when I send text messages, they show up the original number, but when I make phone calls, the id shows up the new number, I can recieve text messages to both numbers. If you try to call the first number it says it is not a working number. On my phone, if I go under "about" it says "my phone number" and it says the second number, under settings, and messaging, it says that I send and recieve messages from the original one. T-mobile, has no idea why this is happening and has tried everything to fix it

    This is for iMessages only, not for text messages as in SMS/MMS.
    Settings > Messages > Send & Receive > Apple ID.
    Select your Apple ID and at the menu window that appears, select Sign Out.
    Turn iMessage off at Settings > Messages > iMessage.
    Then follow these instructions.
    You can remove an iPhone from your support profile by following these steps.
    Step 1: Click on this link to open the login window of your support profile.
    Step 2: Log into the website using your Apple ID – same as your iTunes login.
    Step 3: Click on the button ‘Edit products’ and select the iPhone that you want to remove from the list.
    Step 4: Click on the arrow behind the product, and then click on the button ‘Unregister’ to delete the iPhone from your support profile.
    After you unregister your iPhone, on your iPhone go to Settings > Messages > iMessage and turn iMessage on.
    Go to Settings < Messages > Send & Receive > Apple ID. Sign back in with your Apple ID.
    This should re-register your iPhone with your Apple ID with iMessage with the new phone number only.

Maybe you are looking for

  • Adobe form creation with fillable=X fails

    Hello experts, I am working with a form designed in SFP - in the PDF preview everything is fine, the fields are fillable. When I create the form with the generated function module, it only works when docparams-fillable is empty (but then it is a stat

  • Time machine is very slow....

    After upgrading to ML, time machine seems very slow. I usually make back up once a week. First back up took nearly a day, but completed successfully. 

  • How to determine Pocess-Id in BPM

    Hi all. I need help from you. I want to send an message from a BP with the Proccess-id (Work item) to a receiver. It's possible to determine the Process-Id (maybe by UDF)? I don't looking for Message-Id! Thanks. Mathias

  • Problem with Sap interactive form by Adobe control

    Hi, I'm using NWDS version 7.0.21  . I downloaded and installed LiveCycleDesigner 7.1 from service.sap.com  . I restarted my computer. I start NWDS and open an existing WD java project, and i tryed to  add an adobe interactive form control into exist

  • Canceled Status in Job Detail, Process Chain triggering w/event

    Hi All, I have created event, PC and trigger event with SM64 or with ABAP, everything is ok if I activate and Schedule PC, I see BI_PROCESS_TRIGGER job with released status, and when I trigger the event nothing  is happened but when I checked the Job