Change decimal point dynamically

Is there a way to change dynamically the decimal point used in numeric control without restarting application?
With decimal point localized, that's work only when restarting the application...
Thanks

Yes, you can by changing the Format string:
Changing it from '%.;%f' will use a dot as decimal sign. If you change the format string into '%,;%f' will use comma.d
You have to do this for every control you want to change, so creating some framework is usefull.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • Change decimal point

    Hi!
    How to change decimal point to '.' or ',' ,and how to do this only for current schema, session or user.
    Thanks in advance.

    Decimal separator is an NLS setting. By default it is determined by the value of your NLS_TERRITORY but it is easy enough to override...
    SQL> SELECT 0.98 FROM dual
      2  /
          0.98
           .98
    SQL> ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ",."
      2  /
    Session altered.
    SQL> SELECT 0.98 FROM dual
      2  /
          0.98
           ,98
    SQL> Cheers, APC

  • Change decimal points in SD Condition type from 2 to 3, for EU

    Hello,
    We have a slight problem with the amounts. We are using resource related billing in the project and to track some expenses, there are some condition types created. Since the currency is maintained as EU, the decimal places are maintained as 2 decimals in OY04 and we dont want to change that.
    We face an issue, when SAP Converts condition value from 3 to 2 decimals
    For example, when in Contract we have an Condition Value of 100.025, this is converted to 100.03 and tax is applied on this amount.
    When we create an invoice and subsequently a Credit Memo request, that will contain more than one item, and the sum of all items will have to sum up to 100.03, but this is never the case, as with the application of tax rate, the value comes to something like 100.02 or 100.04..
    With 3 decimal points, this amount adds upto correct value.
    So our ideal solution will be the have the Condition Values as 3 decimals and the Net value in 2 decimals.
    Is there something  that can be done for this?
    Hoping for a quick response.
    Regards
    Maddy

    SAP stores the 3 decimal value in XKOMV-kbetr and Xkomv-kwert is calculated based on this 3 decimal values...
    I had a similar scenario with currency conversion and rounding issue in sales Order and Invoice processing, in VOFM routines... so I used a Floating point  value and converted to character value and then used that 3 decimal value for calculation.

  • How to change decimal point in Rotate Tool.

    Hi,
    I use the rotate tool to design gauges, like clocks, a lot. I hold the ALT button and click on the center of my drawing and then a window pops up to enter in what degree I want my object to be. Currently the decimal point only allows for hundredths, ex. 45.25 degrees. Is there any way to change this to thousandths or even higher, ex. 45.25125? I've attached a screenshot to show you what I mean.
    Any help would be appreciated!
    Thanks,
    Laura

    Laura Belle,
    When you enter the full decimal value, that should give you the right rotation whatever the truncated value is.
    At least I hope that is still the case in your version.
    You may test it as follows:
    1) Create a square with W = H = 100;
    2) Rotate thrice, each time inserting 33.333333 degrees, then rotate by -100 degrees;
    3) Look at the W and H values;
    4) Repeat 1) - 3), only with 33.33 degrees and see what you get.
    You should get W = H = 100 in 3) and  something like 100.017 to 100.018 in 4).

  • Change decimal points

    Hi gurus,
    My client wants to give( in conditions in the sales order ) the price of a material as 120.123 ( i.e.three numbers after the point ) but the system accepts only two numbers like 120.12.
    what are the settings needed to give three decimal points.
    regards,
    anand.

    Dear vas
    Go to OY04 and maintain decimals as 3 there.
    Thanks
    G. Lakshmipathi

  • Arithmatic Equation - How to change decimal point ?

    Dear all,
    I am very new to LabView. I am currently using LabView 7.1 for my project.
    I am building a voltmeter reader. (attached is the vi file). The flow should be like, i am reading voltage from I/O card. Then, the voltage value (eq. 10 volt) is changed to percentage (for example 91%). I am using simple arithmatic icon (multiply and division). Then, these value will be written to a file (eq. voltage1.lvm).
    The output file is something like this :     

    Here is one function called "Format into File" that has it.  It is located to the top of the VI function block.  Other file I/O VI's have it has well.  If you right click on the function and select Edit Format String, it will pop up with a dialog box to help you create the format specifier.
    Message Edited by Ravens Fan on 05-12-2008 11:38 PM
    Attachments:
    Example_VI_BD6.png ‏1 KB

  • Change Decimal point to comma: N.NNN,NN

    Hello,
    I want to display a curr value in this format N.NNN,NN no matter what the user setting is.. It shud always print like this.
    I have checked this frm USR01-DCPFM, but not able to do it correctly.
    IF USR01-DCPFM eq 'X'.
    REPLACE ','  WITH '.' INTO l_amt.
    ENDIF.
    But it doesnt work.
    Scenario could be:
    Input - 1000.00  OR
    Input - 1,000.00 OR
    Input - 1,000.00 OR
    Input - 1.000,00
    Output shud be - 1.000,00
    Please suggest.

    Hello,
    I don't think you can bypass the Decimal notation settings against the user in :
    SU01->Defaults->Decimal notation.
    Cheers,
    Remi

  • Problems with the system decimal point with german regional settings

    I have a Labview 6 app that needs deploying to Germany.
    My app sends strings over VISA RS232 and GPIB instruments with floating point numbers.
    When changing from English to German regional settings, in Windows XP, periods are now interpreted as commas and the app starts truncating my decimal numbers. So in the English Regional Setting when I send 1.234 I get 1.234 but in the German Regional Settings when I send 1.234 I get 1.000.
    I have turned off the "Use localized decimal point" in Tools - Options - Front Panel as well as set any function (Frac/Exp String to Number) that has a "Use System Decimal Point" connector to FALSE.
    Now here's my problem....
    This fixed the issue I was having as long as I am in the development environment, however, once I build the application I still get the truncated numbers. Example: I send 1.234 to an instrument and it sees 1.000.
    Again this works fine in the development enviroment, sending 1.234 reads 1.234 with German regional settings.
    Any help is appreciated.
    Adam

    You can use a simple function of the "Scan from string" function.
    Place "%.;" (Without the quotes) in the scanning string, and this will tell LV to use a decimal point for interpretation. If you place "%,;", this will tell it to use a comma.
    You can place this at the beginning of your format string, and it simply tells the parser how to work, it doesn't otherwise produce an output.
    Using simply "%;" sets the seperator to the system default (maybe the best idea after the code has been run as the changed decimal point character apparently remains changed otherwise). From the LV help
    The following codes control the decimal separator used for numeric output. These codes do not cause any input or output to occur. They change the decimal separator for all further inputs/outputs until the next %; is found.
    %,; comma decimal separator
    %.; period decimal separator
    %; system default separator
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Dynamic displaying of decimal points for currency field in ALV

    Hi,
            In ALV output there is a currency field and displaying data of different countries. It should display decimal point according to the country's currency. But at a time it can display data of different countries.

    Hi Dilip,
    I think your question is about currencies with different number of digits after decimal point. If you have the currency field in the ALV row, you have to give it's name as currency reference for the value field in the field catalog.
    After creating the field catalog, call a form and do something like this (change fielnames accordingly).
    <pre>
    *&      Form  alv_fieldcat_enhance
          Individual Enrichment of field catalog
    FORM alv_fieldcat_enhance
      CHANGING pt_alv_fieldcat TYPE slis_t_fieldcat_alv.
      FIELD-SYMBOLS:
        <alv_fieldcat> TYPE slis_fieldcat_alv.
      LOOP AT pt_alv_fieldcat ASSIGNING <alv_fieldcat>.
        IF <alv_fieldcat>-fieldname(5) = 'KBETR' OR
           <alv_fieldcat>-fieldname(5) = 'SKBTR' OR
           <alv_fieldcat>-fieldname(5) = 'DMBTR'.
    Company code currency
          <alv_fieldcat>-cfieldname = 'BWAER'.
    Document Currency for conditions, net value and taxes
        ELSEIF  <alv_fieldcat>-fieldname(5) = 'KWERT' OR
                <alv_fieldcat>-fieldname    = 'NETWR' OR
                <alv_fieldcat>-fieldname    = 'NPAX_MWST_AMNT'.
    Document Currency
          <alv_fieldcat>-cfieldname = 'WAERK'.
        ENDIF." <alv_fieldcat>-fieldname(5) = 'KBETR' or
      ENDLOOP." at pt_alv_fieldcat assigning <fieldcat_alv>.
    ENDFORM.                    " alv_fieldcat_enhance
    </pre>
    Regards,
    Clemens

  • How to change the Display Pattern for Decimal Fields dynamically

    hi all,
    Can any one help me how to change the display pattern for decimal fields dynamically???
    Currently I am using z,zzz,zzz,zz9.999 Display pattern for Quantity Field. If the value is blank it is displaying as 0.000 on the Screen. But I don't want this to be printed.
    Please help me how to solve this ASAP.
    Thanks,
    Prabhu

    Hi,
    Alternatively you can handle it in the context.
    In the context area, click on the quantity. In the bottom, click on the conditions tab, and put a condition
    <quan field> NE initial.
    So the field will not be printed if there is no value.
    Regards,
    Vidya Chowdhary A.

  • In a pages table change the decimal point to a comma

    I live in Italy and love it. However, there are issues. One that you might be able to help me with is changing the usual decimal point in a table to a comma. In Italy they use a comma for separating change from dollars instead of the usual decimal point.

    Scott Fox wrote:
    I live in Italy and love it. However, there are issues. One that you might be able to help me with is changing the usual decimal point in a table to a comma. In Italy they use a comma for separating change from dollars instead of the usual decimal point.
    I apologize but _*in many countries*_ the usual decimal separator is not the decimal point, it's the comma.
    It's time to understand that American habits aren't the universal rules or ways of life !
    I'm not saying that American habits are bad, just that they are local ones, not better than others.
    Yvan KOENIG (VALLAURIS, France) mercredi 30 septembre 2009 16:01:23

  • Help, please! I am suddenly being presented with CYMK colors to 2 decimal points.  What did I accidentally change and how can I fix it?

    This is driving me crazy. I am suddenly being presented with CYMK colors to 2 decimal points.  Too much info for me.  What did I accidentally change and how can I fix it?  I've been through all of the preferences, views etc. I can find but no luck.  Thinking this has something to with the color settings (obviously) but with all of the possible options there I could use some help.  Thanks, all!

    May have been a switch from RGB to CMYK.
    Or you moved one of the sliders with shift key pressed.

  • UCCX scripting change decimal symbol from point to comma

    Hi all,
    I have an UCCX 7.0 SR5 deployment. I have some HTTP script to which I am passing some variable with the HTTP Contact Info. My scripts are accepting floats only if the decimal symbol used is a point. I would like to change this behaviour so that my scripts could accept floats with a comma instead.
    Best Regards,
    Hatem Hamdi,

    This problem cropped up with the advent of OS X. Prior to that the period (under the 3 on the right hand end of the big keyboard) worked as a decimal point and could produce a point or a comma depending on what language you were working with. Nowadays it doesn't work like that and no amount of fiddling with languages will get it to do things right. So now you either have to use the period (two spaces to the left of M) when entering measurements or else hold down shift when using the decimal period. It's a nuisance and takes a bit of getting used to. Incidentally the decimal period works right in the Calculator but for some reason not in Illustrator. Here in Iceland we use commas for decimals but have to enter periods for Illy measurements.
    The trick that I use for converting points to commas and vice versa in balance sheets in annual reports and that sort of thing is this: First step - Use Edit : Find and Replace to select all the commas and change them to some obscure character that is not used elsewhere.
    Second step - Select all the periods and change them to commas.
    Third step - select all the "obscure characters" and change them to periods.
    I haven't found a better way than this 3-step method but any other suggestions are more than welcome.

  • How do I Change decimal comma for decimal point

    Hello,
    I have an external USB keyboard and I don't know how do I change the decimal comma for the decimal point.
    I already set my region but anyway I can't change the decimal comma for the decimal point.
    thanks

    Thanks for the link, that help me a lot, because now when I'm in excel or a calculator I hit the point key on the numeric part of my keyboard and I get a point, but when I'm in word, safari or entourage and I hit the point key on the numeric part of my keyboard I get a comma instead a point.
    I have a windows Spanish ISO extended keyboard.
    Thanks a lot for your help

  • How to calculate the Percent change in a dynamic

    hi All,
    I'm trying to get the percent increase/change of two dynamic
    colums.  In my report, the user has a checkbox where he can select two colums to calculate the percent growth.
    My DataSet is PilarName, Calification(is a decimal value) and Period (this is a string).  I created the Matrix this way:
    PilarName [Period]
    [PilarName] [Calification]
    Which give me these values:
    So, now I need to create another column to calculate the percentage change between these two colums.  I tried this:
    I added a Adjacent column group for Period column and I grouped by the calculated column "ColumnDiff".  Add the following expression.
    =(SUM(Fields!Calificacion.Value)- Previous(SUM(Fields!Calificacion.Value),"ColumnDiff"))/Previous(SUM(Fields!Calificacion.Value),"ColumnDiff")
    After that I get: 
    I'm getting the sum of the two columns instead.
    Any clue about what I'm doing wrong? Please help me, I've been looking for the answer but any solution works for me.
    Luis Carlos

    Hi Luis,
    According to your description, you have a report with different dynamic columns. Now what you want is show your user percentage growth in your matrix report after your user select two of those columns (I think you may use parameter to achieve your “checkbox”
    function). Is my understanding correct?
    In Reporting Service, we can’t calculate dynamic columns with our build-in arrogation functions. So we need to add custom code into our report, and call those functions which defined in custom code in our expression. We have tested your scenario in our local
    environment. Here are steps and screenshots for your reference.
    Go to your Report Properties, add the custom code below into your report:
    Dim Shared Num1 As Double
    Dim shared Num2 As Double
    Public Function GetCalification(Calification as Double,Type as String,Type2 as String) 
    If Type = Type2 Then
       Num1=Calification
    Else
       Num2=Calification
    End If 
    Return Calification 
    End Function
    Public Function GetPec()
    Return (Num2-Num1)/Num1
    End function
    Create a matrix. Put PilarName into Row field, put Period into Column field. In Data field, put the expression below into the textbox:
    =Code.GetCalification(Fields!Calification.Value,Fields!Period.Value,Parameters!Period.Value(0))
    In our sample report, we created a parameter (named Period) for selecting two columns. You can replace “Parameters!Period.Value(0)” with your own parameter.
    Add an outside column at right (%Growth), put the expression below into the textbox:
    =Code.GetPec()
    Save and preview. The matrix and result looks like below:
    Reference:
    Custom Code and Assembly References in Expressions in Report Designer (SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • Error message while creating marketing attributes

    I get a message 'express document "update was terminated" recieved from author' while creating and saving a marketing attribute. The attribute gets created and I can assign them as well. I would like to know why I am getting this message and am I mis

  • IMac G5 PPC without Airport Extreme Card.... Can install one?

    I bought a 20" iMac G5 in November 2004 and it didn't come with a wireless card. Can I buy an Airport Extreme card from Apple and install it? I've been searching these forums and there seems to be a question of whether there's already an antenna in t

  • Mail stops importing after 500 messages. (From mbox formattedfile)

    Hi, using snow leopard, standard mail app. when importing a unix-style mbox file into mail, it stops after 500 messages. There are some 2700 mails in the mbox file. Any idea if this is a build-in limitation ? Can this be configured to allow more then

  • Multiple Account Assignment At Invoicing

    Dear Guru's Is it possible to use a purchase order without account assignment at invoicing and assigning multiple accounts at that point.

  • Network Diagrams

    HI, Network diagrams are drawn according to physical or logical connectivity?