My quantity is showing with a decimal point and two spaces

When people are entering a quantity of 1 it is showing as 1.00.  It is confusing my users because they think this is a price.  How can I get rid of the decimal point and two spaces? 

Hi,
I am not able to reproduce this problem with a number field.  Are you using this field as a payment-quantity field?.  If so, please check that the Quantity in your payment setting is linked the the right field.
We can do a quick test: create a new form from scratch, add one textfield, then on the field property panel select Type=number.
Select Test tab and click on the Test Web Form button
Enter a number and commit --> check if you get the decimal point and the spaces.
If you still have problem with this, let me know
Thanks,
Lucia

Similar Messages

  • Working With Prices/Decimal Points

    I've recently figured out how to perform calculations on values by assigning them to variables in a click function however I'm working with prices in my app and it seems difficult to get prices/decimal points to claculate properly. At the moment my app looks like this:-
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
    <![CDATA[
    private function getTotal():void{
    var addon1Int:int = parseInt(addon1.text);
    var addon1Float:Number = parseFloat(addon1.text);
    var addon1Number:Number = new Number(addon1.text);
    var addon2Int:int = parseInt(addon2.text);
    var addon2Float:Number = parseFloat(addon2.text);
    var addon2Number:Number = new Number(addon2.text);
    var addon3Int:int = parseInt(addon3.text);
    var addon3Float:Number = parseFloat(addon3.text);
    var addon3Number:Number = new Number(addon3.text);
    var addon4Int:int = parseInt(addon4.text);
    var addon4Float:Number = parseFloat(addon4.text);
    var addon4Number:Number = new Number(addon4.text);
    var addon5Int:int = parseInt(addon5.text);
    var addon5Float:Number = parseFloat(addon5.text);
    var addon5Number:Number = new Number(addon5.text);
    var quantityNumber:Number = new Number(quantity.value);
    total.data = (addon1Number + addon2Number + addon3Number + addon4Number + addon5Number) * (quantityNumber);
    ]]>
    </mx:Script>
    <mx:Text id="addon1" text="5.99"/>
    <mx:Text id="addon2" text="6.99"/>
    <mx:Text id="addon3" text="8.99"/>
    <mx:Text id="addon4" text="4.99"/>
    <mx:Text id="addon5" text="3.99"/>
    <mx:NumericStepper id="quantity"/>
    <mx:Button label="Button" click="getTotal();"/>
    <mx:Text id="total"/>
    </mx:Application>
    It works ok if the numbers in the text areas are whole numbers like 8 or 4 but if I use numbers like 02.99, 05.09 the result comes out a bit srange. For example the result of the numbers that I have in there now if I set the value to 2 in the numeric stepper is 61.900000000000006 when I know from using a real calculator it should be 61.9. Is there any way perhaps of rounding this code to the nearest decimal point so it appears as 61.90?
    Are there any good tutorials that any of you know of when working with prices/decimal points in flex?

    I've managed to find the solution for this - the currency formatter. If anyone's interested or has similar problems her's the code that solves it for me:-
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
    <![CDATA[
    import mx.formatters.NumberBaseRoundType;
    private function getTotal():void{
    var addon1Int:int = parseInt(addon1.text);
    var addon1Float:Number = parseFloat(addon1.text);
    var addon1Number:Number = new Number(addon1.text);
    var addon2Int:int = parseInt(addon2.text);
    var addon2Float:Number = parseFloat(addon2.text);
    var addon2Number:Number = new Number(addon2.text);
    var addon3Int:int = parseInt(addon3.text);
    var addon3Float:Number = parseFloat(addon3.text);
    var addon3Number:Number = new Number(addon3.text);
    var addon4Int:int = parseInt(addon4.text);
    var addon4Float:Number = parseFloat(addon4.text);
    var addon4Number:Number = new Number(addon4.text);
    var addon5Int:int = parseInt(addon5.text);
    var addon5Float:Number = parseFloat(addon5.text);
    var addon5Number:Number = new Number(addon5.text);
    var quantityNumber:Number = new Number(quantity.value);
    var total:Number = (addon1Number + addon2Number + addon3Number + addon4Number + addon5Number) * (quantityNumber);
    totalAmount.text=currencyFormatter.format(total);
    ]]>
    </mx:Script>
    <mx:CurrencyFormatter id="currencyFormatter" precision="2" rounding="none" decimalSeparatorTo="." thousandsSeparatorTo="," useThousandsSeparator="true" useNegativeSign="true" currencySymbol="£" alignSymbol="left"/>
    <mx:TextInput id="addon1" text="5.99"/>
    <mx:TextInput id="addon2" text="06.99"/>
    <mx:TextInput id="addon3" text="08.99"/>
    <mx:TextInput id="addon4" text="04.99"/>
    <mx:TextInput id="addon5" text="03.99"/>
    <mx:NumericStepper id="quantity"/>
    <mx:Button label="Button" click="getTotal();"/>
    <mx:Text id="totalAmount"/>
    </mx:Application>

  • LSMW field with 5 decimal points

    Hi All,
    I need to pass a field in the LSMW with 5 decimal points.
    we cannot pass the data type as "PAC5". can any one suggest how this can be done in LSMW.
    Also, I am passing the currency key as USDN in the LSMW using Idoc method. But it is taking only as USD even though the length of the field is 5 chars. But I am able to acheive this if I manually post it as USDN.
    please suggest on the above 2 issues.
    Helpful answers will definitely be rewarded.
    Thanks in Advance,
    Asif Ali Khan

    hi khan,
    see the below link
    http://www.abapcode.sapbrainsonline.com/2008/03/write-output-formatting-options-abap.html
    http://www.abapcode.sapbrainsonline.com/2008/03/types-abap-keyword.html
    sapabap.iespana.es/manuales/pdf/lsmw.pdf
    abapprogramming.blogspot.com/2008/03/sap-abap-syntax-for-assign.html - 122k
    abapprogramming.blogspot.com/2008/03/sap-abap-syntax-for-assign.html - 122k
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90cef248-29e0-2910-11bb-df8dece7e22c
    thanks
    karthik

  • How to delete decimal point and adding leading zeros....

    Hi,
    I have one requirement in the report   i.e.
            <b>Present Value    :</b>  44567.98
            <b>Expected Value  :</b> 0000004456798
    In the present Value how will I remove that decimal point and how to add those six ing zeros. I tried with CONVERSION_EXIT....but it is not giving. Help me...
    Thanks in advance.
    Regards,
    Kumar.

    Hi,
    Use SPLIT and COMCATENATE fnctions.
    Eg:  split l_v at '.' into l_v1 l_v2
            concatenate l_v1 l_v2 into l_v.
    For adding leading zeros
    Use FM CONVERSION_EXIT_ALPHA_INPUT.
    Eg:
    data: tknum type vttk-tknum value '99156'.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
         exporting
              input  = tknum
         importing
              output = tknum.
    Sri
    Message was edited by:
            Sri Tayi

  • My keyboard and mouse are connected via bluetooth to my iMac, both work. but under network preferences bluetooth PAN is showing with a yellow dot and no ip address. is this normal?

    my keyboard and mouse are connected via bluetooth to my iMac, both work. but under network preferences bluetooth PAN is showing with a yellow dot and no ip address. is this normal?

    Yes.
    Bluetooth PAN refers to a BT personal area network
    http://en.wikipedia.org/wiki/Personal_area_network
    Barry

  • I had an app previously, but now it shows I do not. How can I retrieve this, since I've already paid for it? I have 2 photos- one showing it in my cloud- and two the app itself. Please help

    I had an app previously, but now it shows I do not. How can I retrieve this, since I've already paid for it? I have 2 photos- one showing it in my cloud- and two the app itself. Please help

    redownload it,, either by syncing with iTunes or directly from your phone using the app store.

  • There is no facility of bullet points and tabs space I have seen in the any versions of Adobe Muse

    There is no facility of bullet points and tabs space I have seen in the both versions of Adobe Muse while working with paragraph text layouts. Can anyone tell me the about it if there?
    Saleem Pasha
    Graphic Designer
    Toronto, Canada

    It's unlikely Muse will ever have tab stops (since HTML/CSS has no concept of tab stops).
    Lists and tables are both highly requested features. It's likely lists will be supported in Muse before tables, not due to prioritization, but due to the fact tables is vastly more complicated and thus more work to design, implement and test.

  • South America localization with comma decimal points

    Hello All:
        I am doing a simple division on a formatted search. However it is south america localization and it has the comma as decimal point instead of period. If I just do value 1 / value 2 it give me error message. if I replace , and then cast to numeric and then divide it works. But put in a trigger by formatted search it comes out as a wrong monetary value. The UDF for the FS is a quantity value. Not monetary!
        How does anyone do normal division and multiple with South America localization?
        Thank you for all the help!

    The field itself is actually a UDF of type Quantity. So using the quantity select $[$38.11.0]/$[rdr1.U_myfield]
    I suppose for checks you can just divide quantity by price or something! But it doesn't seems  to work for me!

  • Display unsigned value (battery voltage) = 8134 formatted with a decimal point: 8.134

    How can I display an unsigned value such as 8134 with an "implied" decimal point e.g. 8.134 without dividing by 1000? Is there a format code that will do this? I have Student Version 8.2.1. Many thanks

    It seems silly to force such an arbitrary restriction. A division is cheap, why son't you want to do it???
    Of course you could assign a unit such as V and then set the units to kV for the display.
    I would go with the division!
    Message Edited by altenbach on 11-18-2007 04:58 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DivideBy10.png ‏5 KB

  • Function module to get the decimal point and leading zeros.

    Hi
    I have a requirement, where I need to add zeros at the end and beginning of the field along with decimal point.
    For Eg:
    input = 123
    output = 0123.00
    depends upon the requiremnt,number of decimals will vary
    If anyone knows function module for this  requiremnt  or how to proceed with this, Please give me reply
    Thanks&Regards
    Rama.Mekala

    hi
    use this Fm
    'conversion_exit_alpha_input'
    PP_CATT_CONVERT_DECIMAL_POINT
    for decimal points
    Cheers
    Snehi
    Edited by: snehi chouhan on Jun 23, 2008 9:28 AM

  • How to round decimal point to two places

    Hi all, I have been tasked with creating a custom "calculator" for a client that uses a specific equation. The client inputs data into two Input Text fields and the result shows up in a dynamic text field. Is there any way I can limit the number of decimal places to two? Here is my code (which works, except for the decimal issue):
    function onCalculate()
    one = Number(number_one);
    two = Number(number_two);
    result_1 = ((one / 4) * (65 / (1 - 0.25))) + ((two / 0.5) * (65 / (1 - 0.25)));
    Thanks in advance!!!!

    What will often be done is the result is first multiplied by 100, then rounded to an integer, then divided by 100.  So picking up from your last line where you calcvulate the result_1 value...
    result_1 = Math.round(result_1*100)/100;

  • Precision to two decimal points and...

    How do I format an output line for two decimal point precision with a double variable?
    also...
    What is the best way to clear the screen? I am using the sun compiler with Windows 2000.

    He's right, using Java to clear the screen is not pretty. Here is a rudementary solution:
    public class ClearScreen {
       public static void main(String args[]) {
          //clear the screen
          String[] commands = new String[4];
          commands[0] = "mode.com";
          commands[1] ="con";
          commands[2] = "cols=80";
          commands[3] = "lines=50";
          try {
             Runtime.getRuntime().exec(commands);
          } catch (java.io.IOException ioe) { ioe.printStackTrace(); }
          //print a formatted decimal number (see DecimalFormat API to format the way you want)
          double someNumber = 1234347.657687;
          java.text.DecimalFormat formatter = new java.text.DecimalFormat("#,##0.00;(#,##0.00)");
          System.out.println(formatter.format(someNumber));
    }

  • My ipod classic got knocked off it's dock by my cat and now no matter what I do, even try to charge it I only get sad face with the exclamation point and it clicks like a clock...Is it hopeless?

    My ipod classic got knocked off it"s dock by my cat.  Now no matter what I do I only get the sad face with the exclamation point, even when I try to charge it.  Is it hopeless?

    Yes, it's likely that the iPod's hard drive is damaged and is in need of replacement.
    B-rock

  • Incorrect query result with Top N condition and two structures

    Hi,
    I have created a query on a FI-GL infocube with the characteristic 0BUS_AREA in rows and two structures in columns. The first structure has two items / selections (each item is a selection of several GL accounts). The second structure has two items (the first one contains the key figure 0BALANCE for the current period and the second item is a formula that calculates the absolute value of the first item. The first item is hidden). The (simplified) result looks like this (sorry, not very pretty!):
    Business Area Clients Clients fae
    Business Area1 10 15
    Business Area2 20 7
    Business Area 3 15 8
    Overall result 45 30
    I then added one condition using the Top N operator. The condition is defined for all the elements of the structures. When I execute the query, I sometimes obtained an incorrect number of Top N records selected. The problem seems to occur when N is greater than the number of available Business Areas for an element of the structure.
    For example, if N = 8 and data only exists for 5 Business Areas for the structure element Clients, I may end up with 10 Business Areas for the second structure element Clients fae when I only expect 9 (i.e. the top 8 Clients fae + 1 of the Top 8 Clients for which there is no data under Clients fae).
    Has anybody encoutered that kind of problem ?
    Many thanks.
    François.

    Pascal,this is a known behavior with conditions.When you apply condition it just hide the extra rows and it does not impact the result row.So your result row actually shows the value irrespective of the condition you apply.
    Now with the help of local functions like calculate result as summation you can show the correct sum after applying the condition but when you try to use that result in some calculation then it takes the original value thereby discarding the calculated value.
    Same is happening in your case as well.Its taking the original value i.e 350 and not the calculated sum after condition i.e 270.
    Hope this helps.
    Regards,
    AL

  • 5770 with 27" Apple LED and two 20" Apple Cinema Displays w/Mac Pro

    As stated, I just bought a brand new Mac Pro 8-core (2010 ID 5,1) with a 5770 card and I'm trying to hook up a new 27" Apple LED and two 20" cinema displays. One of the 20" monitors is using the MDP adapter into the 5770 and the 27" is directly connected to the other MDP port. When I try to hook up the other 20" to the DVI port on the 5770 I get nothing. The screen is black and the it is not recognized as being connected. I'm using the standard DVI connector that came with the 20" direct into the 5770. To make sure it isn't a monitor problem, I switched out the 20" displays and both work using the MDP adapter but neither work plugging directly into the DVI port on the 5770. I believe the 20" monitors use DVI-D. (Is that correct?) So what's the scoop on getting blank screens when plugging into the DVI port on the 5770? Thanks for any help.

    "• the 27" is directly connected to the other MDP port.
    • One of the 20" monitors is using the MDP adapter into the 5770.
    • When I try to hook up the other 20" to the DVI port on the 5770 I get nothing.
    Note: If you are using an Apple Mini DisplayPort to DVI adapter, only two displays are supported across the three ports.
    If you are connecting three displays, any DVI displays must be connected to either the Dual-Link DVI port or must use an Apple Mini DisplayPort to Dual-Link Adapter.
    You MUST use All "Active" or "Powered" Mini DisplayPort connector such as the Apple Dual Link, or you can only use two displays

Maybe you are looking for

  • Unable to capture Action_Success event during update

    Hi I am using SAP-B1 2004. Using UIAPI, i am trying to do something when an item information in item master is updated. On update button click i am capturing the Before_Action =True event to do something. If the Item information is successfully updat

  • Start On Windows 7 Boot

    I've tried search and it's like wading through soup trying to find an answer. Is there a way to start itunes up on windows start, not from sleep I mean on start up ? I'm buggered if I can find it in the options is there is one.

  • Buying Apple Watch in US later in the year for Australian use

    Later in the year I am thinking about purchasing an Apple Watch in the US while on my holiday over there. I am wondering, if I bought an Apple Watch there.. Will it work/pair with my Australian phone.

  • Not installed properly

    I have the macbook where the iLife was preinstalled. i did the system update already but when i try to make my own music through the preset 'beats' it says it must be installed first but when i click on updates for garage band it says it is up to dat

  • User exits for VA01

    Hi Experts, For transaction VA01, is it possible to know list of  user-exits available. Thank you