Fract/Exp String to Numbe Display Format

I have a Numeric String which has a large decimal value, with the Digits of precision ranging upto 16 digits. I want to convert this String to a Numeric value and I have used a 'Fract/Exp String to Number'. In my VI I hae set:
Data Type: EXT (because it allows Number of Decimal Digits from 15 to 20)
Data Format: Floting Point
Digits: 16
Precision Type: Precision Digits
The following is my question: If the input string has Precision Digits = 15 Eg: 5.369607712106161
Then I am getting output = 5.3696077121061609, which is about the same, but not the same number I sent.
or , String 1.145152879691825 gives me number = 1.1451528796918251
String 5.818356760119754 gives me number = 5.8183567601197543
Please suggest how I can make the output more precise. 
Thank you.
Regards,
H.
Solved!
Go to Solution.
Attachments:
FractStringToNumber.vi ‏6 KB

Hello Darin
Thank you for the post. It worked!
I do not understnd one thing: My  output number is EXT and the default value is also EXT with precision value set to 0. How does wiring the default value itself works, while not wiring it didnt work before!
Thanks,
H
Message Edited by H P on 12-17-2009 03:45 PM
Attachments:
FractStringToNumber.vi ‏7 KB

Similar Messages

  • Date and number display format

    Hello all,
    I am new to Adobe Form, and I am quite unimpressed with how difficult it is to do the most simple things.
    I have managed one way or another to solve all my problems until now, but this one got me stuck.
    I have date and number fields in my form, and here is what I want to do but cannot:
    - I need these fields to be displayed using the defaults date and number settings of the SAP user who is generating the form. This one is really hard for me to figure out.
    - I need some other fields to be displayed in a specific format depending on a variable in the context of my form. I imagine this could be done using scripting, but how to change the display format of a field via scripting?
    Anyone has an idea of how that can be achieved?
    Thank you.

    Hi Thomas,
    For these kind of issues you will get many answers if you search the forum.
    If your requirement is to display the current date in the form, just drag and drop the "Current date" UI element from the Library palette -> Custom.
    If it is to get the date from SAP and display, pass date to the context node and just drag and drop the field into the form from the data view.
    Check the following wiki by Chintan. It explains some common scenarios in javascript.
    [JavaScript Part 1|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartI]
    [JavaScript Part 2|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartII]
    Use an 'if' condition, check the value and based on the value you can make the field hide/visible in the form.
    Hope this will help.
    Thanks & Regards,
    Sanoosh

  • Phone number display format

    We are looking for a way to personalize the display format of phone number.
    I am at a company where there is a SAPphone or alike software connection to auto-dail using the SAP screen. Other then most companies here this is done from ECC rather then from CRM.
    For this, the Phone numbers are stored flat, without spaces, hashes and the like.
    In SAP there are setting for how to display date and numbers. I did not yet find a way to do the same with phonenumbers. There is an international requirement on how to display the numbers, and storing these numbers formatted is in my opinion not the preferred way to do it.
    There are function modules to format the numbers from flat stored numbers, but that will mean cloning standard transactions to Z versions so that the FM can be used. I would rather not do this too.
    Anyone any ideas?

    I am having the same issue with My Treo 700.  Did anyone find a resolution to this problem.  I think it is more than annoying.  For no reason the formatting just changed. 
    Thanks for you help.

  • Number Display Format

    Number display.  At the top of the phone is a 10  digit phone number all mashed together.  I’ve seen documentation that indicates  that this can be displayed in a more readable format (XXX) XXX-XXX. I’d llik to know  how to control how this is displayed. example 4087632345 vs  (408) 763-2345

    The number displayed at the top right corner of the phone is based on the External Phone Number Mask configured on at the line level for the primary line of the phone.  However, the characters allowed are 0-9, +, *, #, and X.  The individual line text (displayed next to each configured line/button) can be formatted as text but that doesn't seem to be what you are referring to.
    Hailey
    Please rate helpful posts!

  • JSpinner Number Display Format

    Hello,
    I am using a JSpinner with a SpinnerNumberModel to display an integer whose range
    is 5000 to 9,999 (incremented by 1). The JSpinner shows the current number as an
    integer with a comma (i.e. 6,300). Is there an easy way to remove the
    comma from the JSpinners display? (i.e 6300).
    Thanks!
    Michelle

    It's quite simple to test
    import javax.swing.*;
    import java.awt.event.*;
    class Spin extends JFrame implements ActionListener
      JSpinner spinner;
      public Spin()
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLocation(400,300);
        spinner = new JSpinner(new SpinnerNumberModel(5000, 5000, 9999, 100));
        JPanel jp = new JPanel();
        JButton btn = new JButton("Spinner Value");
        btn.addActionListener(this);
        jp.add(spinner);
        jp.add(btn);
        getContentPane().add(jp);
        pack();
      public void actionPerformed(ActionEvent ae)
        JOptionPane.showMessageDialog(this,spinner.getValue());
      public static void main(String[] args) {new Spin().setVisible(true);}
    }

  • Adobe Forms: date and number display format

    Hello all,
    I am new to Adobe Form, and I am quite unimpressed with how difficult it is to do the most simple things.
    I have managed one way or another to solve all my problems until now, but this one got me stuck.
    I have date and number fields in my form, and here is what I want to do but cannot (beware, it is impressive): I need these fields to be displayed using the defaults date and number settings of the SAP user who is generating the form.
    Anyone has an idea of how that can be achieved?
    Thank you.
    Moderator message: please post again in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Feb 24, 2011 1:53 PM

    Hi Thomas,
    For these kind of issues you will get many answers if you search the forum.
    If your requirement is to display the current date in the form, just drag and drop the "Current date" UI element from the Library palette -> Custom.
    If it is to get the date from SAP and display, pass date to the context node and just drag and drop the field into the form from the data view.
    Check the following wiki by Chintan. It explains some common scenarios in javascript.
    [JavaScript Part 1|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartI]
    [JavaScript Part 2|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartII]
    Use an 'if' condition, check the value and based on the value you can make the field hide/visible in the form.
    Hope this will help.
    Thanks & Regards,
    Sanoosh

  • Exponential String to Number

    Should be easy...but I'm getting hung up here:
    I am trying to convert strings in the form 1.40E00 to doubles in the form 1.400.  I am using the "Fract/Exp String To Number.vi", but it does not recognize the decimal values and returns only the integer values.  When I set precision past the decimal place, it returns 1.000 rather than 1.400.  Should be simple, but its kicking my behind.  Any quick fixes?

    Either your input to the function is wrong, or your method of displaying the output is wrong, the fucntions works fine unless you can show it not working properly.
    Please post an example of it not working, with inputs as a constant.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Exponential String Conversion.vi ‏5 KB

  • Fract String to Number converts "700,5" to 700,49999999

    I found that for some numbers the Fract String to Number vi creates a small rounding error. As an example “700,5” converts to 700,49999999. (Se attached image and vi). Is there a way to fix this?
    To see this error you have to adjust the number of digits to display in the Display format property tab. Or you can try using the round to nearest vi which will round to 700 and not 701. (This was how I found the error 
    I’m using Labview 2009.
    Terje
    Message Edited by Terje on 02-08-2010 05:00 AM
    Message Edited by Terje on 02-08-2010 05:01 AM
    Message Edited by Terje on 02-08-2010 05:06 AM
    Solved!
    Go to Solution.
    Attachments:
    rounding error.vi ‏6 KB

    Gerd,
    i just searched in the web a little bit in order to shed some light on the issue. Sadly, i found no real "solution", but something interesting:
    Due to Wikipedia (See in chapter "Character Representation"), the rounding for floating point numbers is correct with 17 decimal digits for binary64 values (which LV-doubles are).
    I previously found out, that the change from 770.5 to 700.4999 is done if the number of significant bits in the display option is set to something higher than 17 (so 18 or above).
    I find this is a fascinating coincidence......
    Norbert
    Message Edited by Norbert B on 02-08-2010 07:52 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • String Display Format Specifiers?

    I am aware that numerics have display format specifiers (as shown in picture), but I'm wondering if there's a similar function for getting the display formats of strings?
    I have shown what I want the output to be (although that output was clearly not generated by the code!). So, can I replace the ???'s with some valid format specifiers? 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    Thanks for the reply! Well, yes, I'm aware of one "bad" way this can be accomplished, by using the "Text.Text" property of some dummy string indicators:
    Instead, I'm wanting some cleaner syntax. Needing to introduce a dummy indicator just to hijack a property of that object is a bit messy.
    Looking at my example, one might argue "Well you only need one dummy string in a For Loop of 4 iterations, setting the Display Style from 0-3. That way you don't need four dummies." Right, but the principle remains... I'm interested in a Format Specifier (or potentially a VI hidden in vi.lib?) that eliminates the need for a dummy indicator.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Changing hex string display format

    When a string control is in hex display format any data typed is displayed in groups of 2 bytes like AABB CCDD.
    Is there any way to display them in separate group of single bytes like AA BB CC DD?

    Try keeping the discussion in the original thread.

  • Can I display formated text on a TextArea

    I am developing a chat applet. I want to display texts from chatters in a TextArea with specific colour and font. But TextArea only contain a method AppendText(String) where displaying plain text is only possible. Please anyone help me to display formatted text in a TextArea(or any relavent component).
    Thank you very much.

    You will probably want to look at JEditorPane instead.

  • EXT Display Format LabVIEW bug

    Up for grab, this easy bug (tested in LV 2012.0f3 (32 bit) on Windows XP)
    From a clean start, create a new VI, drop a "Power of x" function and create control for all input and output. Set the representation of the controls/indicators to be "Extended" (I do that for "Y" first and then the other one are automatically created with the corect type). You get this:
    On the FP, enter 300 for Y and 0.01 for X and run the VI (you expect a result of zero).
    Just for fun, set the Display Format of the output (x^y) to Scientific just to check whether there is no hidden digit somewhere.
    Well, surprise!
    Here is what I get first:
    Then, after pressing OK:
    and after Cancel:
    The VI is password protected, so I ended up my little experiment here.
    Note that if you set the Display Format of x^y BEFORE you run the VI, there is no problem at all. However, once you have run it once, the dialog will pop-up at all times. This does NOT prevent you from changing the format, but it is annoying at the very least...
    I tried it with Exponential as well, trying a value of X = -1000 (you expect again a result of zero), to the same effect. It sounds like an underflow of some sort.
    There is no such problems with type Double.
    Comments welcome.

    X. wrote:
    Comments welcome.
    Ignoring for a moment what the actual problem is, I think the sequence of events is fairly simple:
    You open the property page and try to set the format.
    The property VI calls that subVI with the relevant data.
    In the subVI there is a format into string primitive with an unwired error output (or it's unwired downstream).
    There's an error and the VI has auto error handling enabled (or possibly not and this is an internal dialog, since the AEH dialog is different), so it tries to show you where the error happened.
    The VI is locked, so you get a PW dialog.
    Try to take over the world!

  • Display format for Exif Tag: ExposureTime

    Hello,
    I'm a user of Adobe Photoshop Elements 3.0, in which the image editor component displays "File Info" (Exif and XMP information) embedded in the image file using the Adobe Photoshop Information Panels, which are XMP files (
    DOCTYPE panel SYSTEM "http://ns.adobe.com/custompanels/1.0").
    Unfortunately, my camera embeds the Exif tag
    ExposureTime instead of the Exif tag
    ShutterSpeedValue.
    In the camera1.txt XMP panel file, the ShutterSpeedValue field is defined as (the Adobe Forum Web UI will break the formatting)
    static_text(name: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeed=Shutter Speed:', font: font_big_right, vertical: align_center);
    edit_number(format: apex_shutterspeed,  precision: 2, format_addin: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeedFormat=^0 sec',locked: true, horizontal: align_fill, xmp_ns_prefix: 'exif', xmp_namespace: 'http://ns.adobe.com/exif/1.0/', xmp_path: 'ShutterSpeedValue');
    I changed this to:
    static_text(name: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeed=Shutter Speed:', font: font_big_right, vertical: align_center);
    edit_number(format: decimal,  precision: 4, format_addin: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeedFormat=^0 sec',locked: true, horizontal: align_fill, xmp_ns_prefix: 'exif', xmp_namespace: 'http://ns.adobe.com/exif/1.0/', xmp_path: 'ExposureTime');
    in order to display the correct Exif tag.
    But how can I display the usual reciprocal shutter speed format ("1/160th sec") instead of the decimal format ("0.0063 sec")?
    Any help much appreciated!

    Don't know about the display format problem ... but there seems to be another quirk. Obviously you are confusing shutter speed with shutter speed value. These are two different things. The shutter speed value is the inverted base-two logarithm of the shutter speed in seconds. Example: shutter speed = 1/128 s --> shutter speed value = 7.
    By the way, there's a similar difference between aperture and aperture value; the latter is twice the base-two logarithm of the f-stop number. Example: aperture = f/8 --> aperture value = 6.
    -- Olaf

  • Multiple display formats for several records coming from the same table

    Hello all,
    I want to create one Crystal Reports XI report to display several records coming from one table, but I need different display format for different records from that one table.
    There is a field RecordType and based on that value, the record will be displayed differently on the report page.
    Can I have several sections in the report and to define different SQL query in each of them?
    Example of the report I need to see on paper:
    ================================================
    Summary of 216 vehicles:  (the value 216 comes from record with RecordType=1)
    Vehicle Category    Number of Vehicles
              A                   5          (this value 5 comes from record with RecordType=2)
              B                   7          (this value 7 comes from record with RecordType=3)
              D                   4          (this value 4 comes from record with RecordType=4)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these five values come from records with RecordType=5)
    Category B vehicle numbers:
    9876   8876   9987   4321   6754   5215   4543    (these values come from records with RecordType=6)
    Category D vehicle numbers:
    2343   2344    2348   2377    (these values come from records with RecordType=8)
    ==============================================================
    Text is fixed (labels), number values are coming from table records.
    What would be a good way to do this in Crystal Reports XI ? In Cognos ReportNet, I would just create several Queries (SQL sentences) and place their outputs on a page, one after the other.
    I use Crystal Reports XI R2 and Oracle 10g database through and ODBC connection.
    Thank you,
    Milan

    Obaid and Debi,
    Thank you for your replies.
    I can create multiple sections in the report, but I don't know how to split the 20 records that I get back from the database to be displayed in 5 different report sections.
    How can I define different SQL statement for each of 5 report sections?
    How can I use cross-tabs to display what I need? Can I define SQL statement for each cross-tab and then I could place only RecordType=1 records into cross-tab-1 and all RecordType=2 records into cross-tab-2 ?
    In Cognos ReportNet, I defined 2 Queries (SQL statements) and I just placed them in the report one below the other. Query_1 returns 1 record where RecordType value =1. Query_2 returns 5 records where RecordType value =2 and etc. So each record "section" displays record in the way I want it.
    ================================
    Summary of 216 vehicles:  (the value 216 comes from record where RecordType=1)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these values come from records where RecordType=2)
    ================================
    How can I do that in Crystal Reports XI ?
    How can I run several SQL statements from one report?
    Thank you,
    Milan

  • Match the string for a particular format

    i want to chek the string for a particular format..
    lets say for ex ,
    i have to check the string for 6A1N format where A - Alphabets and N - Numbers.
    that means my string exactly contains 6 alphabets from a to z and one number from 0 to 9
    like this i want to check for two more fromats..they are..
    2A7N1A or
    9N1A

    koneru9999 wrote:
    will the pattern is helpful in my case?
    and i don't have any idea doesn't mean finsh reading all the API right?You need to study http://www.regular-expressions.info/ and then http://java.sun.com/docs/books/tutorial/essential/regex/ .

Maybe you are looking for