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

    a question from a newbie, decimals, commas a nd points!

    User elenamg22 (marihelen54@hotmail.com.nospam) posted:

    i don't know it for sure... but i've tried changing the point for a
    comma and it works (my system recognises the comma as the decimal
    separator but i've tried changing it for the point to be recognised
    as the separator but in vain) what have i got to do to have comma and
    point recognized as decimals indicators?!
    thanks!!!

    --- In winrunner@y..., Roman Zilber <romanz@e...> wrote:
    and
    something
    comma
    for
    with
    to
    eliminate
    not
    email
    message
    program
    that you
    address in
    cause the
    Service&quot; http://docs.yahoo.com/info/terms/



  2. #2
    Junior Member
    Join Date
    Jul 2002
    Location
    Hyderabad,AP,INDIA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: a question from a newbie, decimals, commas a nd points!

    User vprasad gupta (vprasadgupta@yahoo.com.nospam) posted:

    sprintf() will be useful. use this function like this
    tot2=sprintf("%2f",tot2); this will give the amt with
    two decimals.

    thanks,
    prasad
    --- elenamg22 <marihelen54@hotmail.com> wrote:


    __________________________________________________
    Thanks & Regards,
    Prasad Gupta

  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: a question from a newbie, decimals, commas a nd points!

    User Franzen, SPS PROFI, DA (C.Franzen@DeutschePost.de.nospam) posted:

    Okay...

    Im not sure about it, but I think WR 6.x has a bug here: The parser expects a comma, while the interpreters wants periods. (Using the string workaround works almost always, i.e. write 'X="5,16"' instead of 'X=5,16', and X will indeed have decimal places.)

    We got rid of this bad, bad and hard-to-communicate bug by:

    1. Confronting support with it. It took months, and we had to escalate a lot, but at the end, we received a patch. It was either WR602p46 (best guess) or WR602p33 (that might be an old version of the patch). Both of them seem to be non-public.

    That made WR behave like a real :-) programming language, i.e. the numerics are notated in U.S. format (dot is decimal separator) in all scripts, no matter what the OS country setting is, and proper processing is implemented.

    What then was missing is compatibility betweem WRs table editor and WRs interpreter. Read below.

    2. Made sure wrun.inis WrIntl section looks like this (all data assumes Germany as the configured OS-country):

    [WrIntl]
    NUM_LANGS=1
    DEFAULT_LANG=1031
    LANG_ID_1=1031
    LANG_NAME_1=German

    That made the table editor and the ddt_ function compatible again. Note this was NOT spit out by Mercury.

    Its unbelievable but true: If you dont contact support, you cannot use floating-point values in scripts as documented IF your PCs are configured for one of the critical countries.

    Id love to learn if this problem is solved out-of-the-box in WR 7.x?

    Let me know if this helps.

    Regards.


    Christoph Franzen
    Durchwahl -907-2419
    Schwarz, Prof. Spruth & Associates Unternehmensberatung AG & Co. KG
    Deutsche Post World Net
    ITSolution GmbH
    Abt. SCN


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

    Re: a question from a newbie, decimals, commas a nd points!

    User elenamg22 (marihelen54@hotmail.com.nospam) posted:

    Thanks!
    i solved the problem, at least temporally, by changing the regions
    configuration so now i have it as english! now i can work with points
    as the decimal separator. If i encounter more problems, i'll try the
    patch! thanks!

    elena

    ps: my wrun.inis WrIntl section doesn't look like what you typed
    below. It is as follows:
    [WrIntl]
    NUM_LANGS=1
    DEFAULT_LANG=1033
    LANG_ID_1=1033
    LANG_NAME_1=English

    Should i change it? or is it ok like that? (sorry, but i do not quite
    understand what are those lines for)


    --- In winrunner@y..., "Franzen, SPS PROFI, DA" <C.Franzen@D...>
    wrote:
    parser expects a comma, while the interpreters wants periods. (Using
    the string workaround works almost always, i.e. write 'X="5,16"'
    instead of 'X=5,16', and X will indeed have decimal places.)
    escalate a lot, but at the end, we received a patch. It was either
    WR602p46 (best guess) or WR602p33 (that might be an old version of
    the patch). Both of them seem to be non-public.
    numerics are notated in U.S. format (dot is decimal separator) in all
    scripts, no matter what the OS country setting is, and proper
    processing is implemented.
    and WRs interpreter. Read below.
    assumes Germany as the configured OS-country):
    Note this was NOT spit out by Mercury.
    cannot use floating-point values in scripts as documented IF your PCs
    are configured for one of the critical countries.
    7.x?
    configured as
    Co. KG
    decimals,
    to
    long
    stucked in
    any
    much
    what
    your
    the
    is
    sender's
    messages
    consult 'Terms
    post.
    list
    -
    a
    to...



 

 

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 12.50%
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 04:12 AM.

Copyright BetaSoft Inc.