Problem with rounding numbers?

I have the following code, which is part of my web application that I use the liquid on:

{% assign BService = BsumService | divided_by: BdivisorService-%}

This generates a number like this: 3,166667.

Then I run the present:

{{BService | round: 1}}

This should, unless I've misunderstood something, exit: 3.2 but the problem is it does not change the output. I always 3,166667. I tried tour: 2 with the same results.

What happens here? I use incorrectly round: x? Is this a bug?

I must point out that ceiling, floor and around the work. The only one who doesn't is round: x.

Yes Alex, that's how BC's spit that so that would need fixing.

Lynda... During this time before I do around it a... | replace: ',','. ' with her

Tags: Business Catalyst

Similar Questions

  • I have a problem with the numbers. Help, please!

    I have a problem with the numbers. I am trying to create a formula that can add a cell only when another cell with a pop-up menu returns on a specific pop.  I can't ignore the cell if it is not on specific pop upward.

    assuming the cell with pop's cell A1

    and if the context menu contains items:

    YES

    NO.

    MAYBE

    and the value you want to add in cell A2

    You can add the value in cell A2 when the context menu is 'YES' like this

    = if(A1="YES", A2, "") +.

    where is the expression that adds other cells if you want

    could be another cell

    = If (A1 = "YES", A2, "") + B2

    or a range of cells

    = If (A1 = "YES", A2, "") + sum (B2, D2, G2:H5)

  • Problem with the numbers in the rows of cut and paste

    Hey,.

    I'm new to MAC and now have problems with the help of figures, I brought my windows Excel worksheets. On windows, I could cut a line and paste anywhere on this page and by practice that Excel would fill the void rank where I cut the content. but here on MAC it does not work, why?

    anyway I tried to live with it by cutting a line and for the collage, I used Insert > copied lines for paste swath and add a line for her. but last night I updated the numbers and now by the practice precedes the Windrow is stuck this time with a resized form, the line is resized to a big line.

    Why is this happening? If it can't be fixed, I can go back to a previous version of a number? This update of hate.

    Numbers is excellent NO then you should consider to guide your expectations.

    Cut number refers only to the content NOT the line, or cells.  Select when a row, and then use the cut command that you cut the contents of the cells.

    If you try to move a line from one place to another, you should try this method (which can work for you)...

    Select the line, then click and hold on the header line (up to the line "lift" on the table), the operation slide the line to the destination.

    Now drag the line:

    Now drop the line where you want to:

  • This calculator works only with round numbers

    I need help,

    This calculator works only with the numbers series, but is this 1.9 * 6 the result is 11.399999999999999 instead of 11.4

    Ware is the problem, can it be resolved?

    Theanks in advace.

    <? 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():Sub

    {

    var myInt:int = parseInt (input.text);

    var myFloat:Number = parseFloat (input.text);

    var myNumber:Number = new Number (Input.Text);

    var myInt2:int = parseInt (input2.text);

    var myFloat2:Number = parseFloat (input2.text);

    var myNumber2:Number = new Number (INPUT2. (Text);

    total. Data = (myNumber) * (myNumber2);

    }

    []] >

    < / mx:Script >

    < mx:TextInput id=" entry " />

    < mx:TextInput id=" INPUT2 " />

    < mx:TextInput id=" total " />

    < mx:Button " label = ' Button "click ="getTotal ();" />

    < / mx:Application >

    Welcome to the joys of IEEE 754 floating-point arithmetic. For more fun, try ".1 + 1 - 1»

    The simplest answer is probably to limit your result with Number.toFixed (). The answer is not so easy is to write your own class BigDecimal (in Java).

    --
    Maciek Sakrejda
    Truviso, Inc..
    www.truviso.com
    Truviso recruiting: http://www.truviso.com/company-careers.php?i=87

  • Problem with @Round

    Hi all

    I have the following problem. I use @Round (member name, 2) for 3 members. But parent member of dynamiccalc with the aggregation operator is displayed as 16212.960000000001. How is that possible? And how can I solve this problem. Others displayed like this:
    15689.94
    178,7
    344,32

    Thank you

    Write a formula for Member to Member dynamic calc with function @ROUND.

    See you soon... !!!

  • Calculation of tabular form, problem with decimal numbers

    Hello

    I wrote a simple java script function that is responsible for calculating the price * quantity and store that value to total_price.

    function CalcTotalPrice (pThis)
    {
    var vRow = pThis.id.substr (pThis.id.indexOf ('_') + 1);
    html_GetElement ('f07_' + vRow). Value = parseInt (html_GetElement('f06_'+vRow).value, 10) * parseInt (html_GetElement('f05_'+vRow).value, 10);
    }

    The function calculation is correct, but I have problem when the price or quantity decimal numbers.
    For example.
    Currently:
    price * quantity = total_price
    7.5 * 1 = 7 instead of * cf. 7.5 *.

    I've already put a mask of correct format for all of these areas (999G999G999G999G990D00).

    I appreciate your help.

    Request Express 4.2.1.00.08
    Oracle Database 11g Express Edition Release 11.2.0.2.0

    Kind regards

    Hi John,.

    before the multiplication, you analyze your values as an integer, so 'cut' the decimals.
    Replace "parseInt" by "parseFloat" should do the trick.

    function CalcTotalPrice(pThis)
    {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    html_GetElement('f07_'+vRow).value = parseFloat(html_GetElement('f06_'+vRow).value, 10) * parseFloat(html_GetElement('f05_'+vRow).value, 10);
    }
    

    Please let me know if this worked for you.

    Thank you
    Sandro

  • problem with cvs &amp; numbers fields

    Sometimes, when I'm downloading a CSV file and try opening number, all fields (there are about 10) are thrown in 1 field. What can I do to prevent this?

    can send you a sample of the data?

    The best way to address it is to look at the data to see what is causing the problem

  • Problem with rounding

    Dear Sir.

    I'm having a measure column when I drag this column of presentation layer, it is display something like "8874599" but I need like this "8874598.67".

    I need also decimal points instead of the borough... with manually giving data format... I need decimals when I simply drag the column...

    Please help me

    is this right column or an expression?

    for the right column then format it once and use SAVE to system wide etc, there after his double

    Another option is to column * 1.0

  • Problem with creating numbered lists the paragraph style...

    I have a numbered list, using "bullets and numbers" paragraph style But I don't know how to get the numbering to work properly.

    If I set the "mode" to "continue from previous" mode, whenever I use this paragraph style continuous numbering since the last issue of the previous list using this style.

    If I put the 'mode' for ' start in ' a number, say '1', then all numbers in the list are this number.

    I want that each list is independent of the final list. The only thing I can understand is to create a new paragraph for each list style, but which does not seem a good way to go.

    I have been exploring for some time but have not been able to understand this.

    Place the cursor inside your paragraph of the list where you want than to restart numbering.

    Choose from the menu:

    Type > bulleted & numbered lists > restart page numbering.

    Torben.

  • Problems with random numbers

    I want to create a variable, xSpeed, which has an equal chance to be 10-10 or 0. Here's what I have so far:

    xRandom = random (3);
    If (xRandom < = 1) {}
    xSpeed = 10;
    } ElseIf (xRandom < = 2) {}
    xSpeed = - 10;
    } else {}
    xSpeed = 0;
    }


    So, there should be an equal chance to put xSpeed as 10, -10, or 0 to right? Instead I think it's always 10 or - 10.

    If I change to xRandom = random (3); for xRandom = random (4); then each value has an equal chance to be implemented. But this should be the case for the random (3) surely?!

    Also, if I change to xRandom = random (3); for xRandom = Math.random (3); then xSpeed always seems to end up like 10. What is with that? What difference does add math do?

    I must be missing something important about the functioning of random() because it isn't making any sense to me: (.)

    Perfect. Thank you very much

  • HP ENVY notebook - m7-n011dx: problem with keyboard

    The situation began early September, I noticed something was wrong. Whenever I tried to use one of the symbols by pressing SHIFT and the number, it does not meet my contact. Evenutally 30 seconds to a minute, after pressing the button several times and pressing him hard, he evenutally works.

    During this time, I'm just having the problem with the numbers of typing on the letter keys. Even by pressing the SHIFT key, both of them, would be about a minute for three minutes. As we speak now, I'm having a problem just get the numbers to type.

    I fear that it is perhaps a material thing, because my missed warranty back to the month of August and the money is a problem for me at the moment. For the fact that it is a problem to connect to my computer or by using password with numbers and even trials of typiing, I found this irratiable to do any work. I was thinking of doing a new keyboard, but I still don't like the fact this computer is just a year old, but I'll have to buy a keyboard for this. I want to say that it can only be a softare related question because if it was the key, I think the backlight would be as well, but I think it's a keyboard related question, a related software or I'm not cleaning the keyboard properly. Can I apply for aid because it frightens me that several issues came into play.  Other than the keyboard related question, it's the only thing that is wrong with this computer. I'm ashamed that I'm a major TI and I don't know what may be the issue.

    Hi@SoZo-TEKI,

    Thank you for the answer.

    Try the following steps to change the region of the keyboard settings and check to see if that solves the problem.

    • Click on the Start Menu. ...
    • Click settings.
    • Click time and language.
    • Click on the region & language.
    • Click the language that you want to add a keyboard layout to.
    • Click on Options.
    • Click on add a keyboard.
    • Click on the keyboard you want to add. (Ideally, it should be (English - U.S.).

    It will be useful.

    Happy announcement.

    Resolv_S

    Happy to help you. I work for HP

    Please click on " ""Accept as Solution " " " if you feel my post solved your problem, it will help others find the solution.
    Click on the " Bravo Thumbs Up" " " to say 'Thank you' to help! "

  • Problem with some values in the round of text

    Hello

    I have a problem with the control of the "ring of text.

    In my software, I need to update the values of ring of text, using a property node. But some values are not included by the ring of text, even if they are defined inside.

    I agree with you an illustration of my problem and the piece of code that does not work, I hope you can help me

    Thank you

    Julie

    Probably a result of the fact that the floating point numbers cannot represent exactly every real number.  Up to 0.4 is not exactly equal to 1e6 4th-7 x.

  • I continue to receive calls from numbers not available with an Indian accent saying that they are from the Technical Department of windows and I have a problem with my computer.

    Original title: scams?

    I continue to receive calls from numbers not available with an Indian accent saying that they are from the Technical Department of windows and I have a problem with my computer. Normally, I just say that I don't have and hung up. Today, I took a little further and he said that they discovered that I had loads of malware/viruses etc and that they could identify with them. I was obviously very suspicious because he seemed to have my correct Windows ID number and with care on 'Run' he told me to type things like cmd eventviewer and inf where he referred to a file 1394.pnf. I stopped while he asked remotely to access my computer. However, I got a phone number 01916450337 and his P786000 id I noticed that many people are posting on your forum-is this another one of those scams?

    Continue to put the phone down. They are all crooks.

    They get you to open Event Viewer, because there are words such as 'critical' and 'error' along the this.

  • Hello, I had a problem with my band. It does not really suppose he numbered scenes everything in order and he has so far in until I missed an and changed for the good order. But now when I go back to where I left and I have create a new scene

    Hello, I had a problem with my band. It does not really suppose he numbered scenes everything in order and he has so far in until I missed an and changed for the good order. But now when I go back to where I left and I have create a new scene number come up as * it and I need to change personally. is their any way I can change it to order normally?

    Hello

    You can manage this through the "Manage scene numbers" option in the menu 'Production '.

    There is a setting in this dialog box to assign scene numbers automatically to the new scenes.

  • problems with the text and rounded rectangles

    So I have some rounding of the rectangles in fireworks, then export as fxg, and import it into flash catalyst - but they lose the roundness of rectangles square become. Also have problems with the text as half displaying or doesn't appear do not at all.

    feature request

    -would be really cool to be able to change the paths in flash catalyst

    -Edit the code in code view

    see you soon

    brand

    Hi, the absence of a property of corner radius is a limitation of the FXG export command in Fireworks CS4. We work closely with the Fireworks team to improve interoperability FXG in CS5.

    Thank you for your comments and suggestions.

    -brian

    Team Flash Catalyst

Maybe you are looking for

  • Satellite P750 - webcam no longer works

    I have an a P750 for 6 months and one day when I'm going to use Skype webcam had stopped working.I had not been playing with the settings or make changes, so it just came out of the blue. I tried to reinstall the application webcam on Toshiba site, s

  • How can I make my files open with the section 'files' (on the left) already enabled (in Windows Explorer)?

    I'm on Windows XP with Service Pack 4.  The "show common tasks in folders" checked in folder options and my windows Explorer opens with the "common tasks" bar on the left side.  I have to click on 'files' (in the top tool bar) to get my files to disp

  • Hotmail browser closes in IE (and Google Chrome)

    When you access Hotmail or any mail that my browser closes after a few seconds.  It seemed first from MS set to update the browser email to display flags.

  • BSOD 0X0000007F

    Recently, Ive had problems at the start of my PC. I arrive at the Windows xp loading screen just before I can choose which user I'd like to run. Ive been making BSOD 0x0000007F (0x00000008) (0 x 80042000) (0x00000000) (0x00000000). A brief overview o

  • Duplicate IP address error at startup

    Original title: Start up error System. IP address conflict? Help please. I have an error at the beginning upward.   ". IP address conflict with another system on the network"what is it and how to fix it? I found two IP addresses, but I don't know if