SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Arrays automatically add on a decimal point to th e end of

    User (James_Pink@NPI.CO.UK.nospam) posted:


    Yep - I've even formatted the numbers as text, but WR still appends .0 to
    numeric entries!

    Pinky



    "Komanovsky,
    Oleg" To: "'winrunner@yahoogroups.com'" <winrunner@yahoogroups.com>
    <okomanovsky@e cc:
    volve.com> Subject: RE: [winrunner] Arrays automatically add on a decimal point
    to th e end of whole numbers...
    03/10/2001
    18:19
    Please respond
    to winrunner



    Have you checked the dB itself? Maybe the numbers are displayed there with
    decimal...?


  2. #2
    Member
    Join Date
    Mar 2001
    Location
    Chapel Hill, NC, USA
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Arrays automatically add on a decimal point to th e end of

    User Wendy Richardson (rwendy@us.ibm.com.nospam) posted:

    THe long way around this is to use the split function your numbers,
    splitting with "."

    Wendy Richardson
    Testing and Automation Tools
    919-543-3514 T/L 444-3514


    James_Pink@NPI.CO.UK on 10/04/2001 05:14:21 AM

    Please respond to winrunner@yahoogroups.com

    To: winrunner@yahoogroups.com
    cc:
    Subject: RE: [winrunner] Arrays automatically add on a decimal point to th
    e end of whole numbers...

    Yep - I've even formatted the numbers as text, but WR still appends .0 to
    numeric entries!

    Pinky


    ******************* "Komanovsky,
    ******************* Oleg"**************** To:
    "'winrunner@yahoogroups.com'" <winrunner@yahoogroups.com>
    ******************* <okomanovsky@e******* cc:
    ******************* volve.com>*********** Subject:**** RE: [winrunner]
    Arrays automatically add on a decimal point
    ***************************************** to th e end of whole numbers...
    ******************* 03/10/2001
    ******************* 18:19
    ******************* Please respond
    ******************* to winrunner

    Have you checked the dB itself? Maybe the numbers are displayed there with
    decimal...?


  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Arrays automatically add on a decimal point to th e end of

    User (James_Pink@NPI.CO.UK.nospam) posted:


    Nice idea but there are times when I want to include a decimal point (if
    there is one in the database entry e.g. currency). Ideally, I want WR to
    pick up the literal values of the database rows, not just make up it's own!

    Cheers

    Pinky



    "Wendy
    Richardson" To: winrunner@yahoogroups.com
    <rwendy@us.ib cc:
    m.com> Subject: RE: [winrunner] Arrays automatically add on a decimal point
    to th e end of whole numbers...
    04/10/2001
    14:44
    Please
    respond to
    winrunner



    THe long way around this is to use the split function your numbers,
    splitting with "."

    Wendy Richardson
    Testing and Automation Tools
    919-543-3514 T/L 444-3514


    James_Pink@NPI.CO.UK on 10/04/2001 05:14:21 AM

    Please respond to winrunner@yahoogroups.com

    To: winrunner@yahoogroups.com
    cc:
    Subject: RE: [winrunner] Arrays automatically add on a decimal point to th
    e end of whole numbers...

    Yep - I've even formatted the numbers as text, but WR still appends .0 to
    numeric entries!

    Pinky


    ******************* "Komanovsky,
    ******************* Oleg"**************** To:
    "'winrunner@yahoogroups.com'" <winrunner@yahoogroups.com>
    ******************* <okomanovsky@e******* cc:
    ******************* volve.com>*********** Subject:**** RE: [winrunner]
    Arrays automatically add on a decimal point
    ***************************************** to th e end of whole numbers...
    ******************* 03/10/2001
    ******************* 18:19
    ******************* Please respond
    ******************* to winrunner

    Have you checked the dB itself? Maybe the numbers are displayed there with
    decimal...?


  4. #4
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Arrays automatically add on a decimal point to th e end of

    I'm guessing that maybe your spreadsheet is storing your numeric values as floats, so when you read it in to WR it's reading in "integers" as "x.0" (a string). Try this: assign the read in value via eval() to itself or another variable:

    onezero = "1.0";
    oneone = "1.1";
    print("Before: " & onezero & ", " & oneone);
    eval("onezero = " & onezero & ";");
    eval("oneone = " & oneone & ";");
    print("After: " & onezero & ", " & oneone);


    Hope this helps.

    ------------------
    Charles Reace

    charles{DOT}reace{AT}verizon{DOT}net
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:08 PM.

Copyright BetaSoft Inc.