Round the number to upper range

Hi guys!!
I need to round the number 5.552 to 5.60. how can I do this? even if the number is 5.51 then also it will be 5.6. How to do ?
Thanks
Kazi Mokarem

Since Jens gets to introduce a fudge number, so can I :-)
Depending on how you feel about 5.50
SQL> SELECT ROUND(5.51 + .05, 1) round_up1,
  2         ROUND(5.50 + .05, 1) round_up0,
  3         ROUND(5.51 + .04, 1) still_round_up1,
  4         ROUND(5.50 + .04, 1) round_down0
  5  FROM dual
ROUND_UP1  ROUND_UP0 STILL_ROUND_UP1 ROUND_DOWN0
       5.6        5.6             5.6         5.5TTFN
John

Similar Messages

  • How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    For my part you are welcome, sdowers.
    Unfortunately, the uncertainty arising from the rounding has been up several times here in this forum.
    I just came to remember a warning that needs to be given:
    The rounding of the representation of a numerical value may be harmless in itself, but if you use it for any operation that changes the value, such as multiplication or whatever, things will go wrong because the operation will be made on the basis of the rounded value instead of the true value. So, as in your first case in post #2, 39.625 rounded to 39.63 will become 79.26 instead of 79.25.

  • Round a number to 2 decimal places

    Hi,
    I have a computed value that returns 10 plus digits after the decimal place, exampe: 2.2482352941176.
    What is the easiest way to edit this value in TestStand to return a number that is rounded up to 2 decimal places (2.25)?
    Thanks & Regards,
    Don1.
    Solved!
    Go to Solution.

    One way to do this is to use the TestStand functions Str and Val.  The %.2f rounds the number to 2 decimal places.
    Val(Str(Locals.MyValue, "%.2f"))
    Peter

  • Urgent : Unable to maintain the Number ranges for Excise Groups

    Hi CIN experts............
    In Development server I created 3 excise Groups (E2,E3 and E4), the same I was transported to Production.
    J_1IRG23A1, J_1IRG23A2 object number ranges are Excise Group specific.
    When I go to Tools - Number Ranges to maintain number range for J_1IRG23A1, J_1IRG23A2 objects I didn't find these excise groups.
    Im able to see these Excise groups in Tools - Number ranges in Development server, but not in Production.
    Can any one guide me something to resolving the issue ?
    regards
    Durga Ram

    Hello Nagaraju,
    Can you please tell me the customozing path for maintaining the number ranges for PM log entries.
    I require to mention customizing path in my document.
    Puneet

  • How to find out the Number range object for Incident number

    How to find out the Number range object for Incident number ?
    CCIHT_IAL-IALID
    regards,
    lavanya

    HI, an example.
    data: vl_num type i,
          vl_char(6) type c,
          vl_qty type INRI-QUANTITY,
          vl_rc type INRI-RETURNCODE.
    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        NR_RANGE_NR                   = '01'
        OBJECT                        = 'ZRG0000001'
       QUANTITY                       = '1'
      SUBOBJECT                     = ' '
      TOYEAR                        = '0000'
      IGNORE_BUFFER                 = ' '
    IMPORTING
       NUMBER                        = vl_num
       QUANTITY                      = vl_qty
       RETURNCODE                    = vl_rc
    EXCEPTIONS
       INTERVAL_NOT_FOUND            = 1
       NUMBER_RANGE_NOT_INTERN       = 2
       OBJECT_NOT_FOUND              = 3
       QUANTITY_IS_0                 = 4
       QUANTITY_IS_NOT_1             = 5
       INTERVAL_OVERFLOW             = 6
       BUFFER_OVERFLOW               = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    vl_char = vl_num.
    write vl_char.
    Regard

  • How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_0

    How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_001 using Functional Module NUMBER_GET_NEXT explain me ?

    Hi,
    First go thourh the FM import export parameters list.
    Try to create an internal table of type INRI-NRRANGENR for number ranges.
    We can provide the lower and higher values for this table so that what ever PO is created will be with that range.
    Try to create the ncessary ones using this FM.
    In the Exit, EXIT_SAPMM06E_001,
    the Export parameters are-
    EKKO-EBELN- the PO ios created with in that specified range
    Range as INRI-NRRANGENR - Here try to assign the Internal table that was populated in the FM.
    Try to code this in the Include provded and keep Breakpint and check the PO number generated.
    Reply if u need more help on this.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • Counting the number of pixels in a certain range within an ROI

    I am using Vision 6.0 for Visual Basic.
    I would like to get a count of the number of pixels within a particular region whose value falls within a certain range (e.g., the number of pixels with values between 86 and 255).
    Can anyone tell me how I can do this?
    Thanks.

    bep -
    Have you looked at the Histogram example? It should be under the Analysis directory wherever the examples are.
    After doing the Histogram like the example does, you will have a CWIMAQHistogramReport object (let's call it HistogramReport) that contains the result of the Histogram. To access the 1-dimensional array containing the count in each bin, use the Histogram property on the CWIMAQHistogramReportItem that the HistogramReport contains.
    To use this array, however, you will need to assign it to a variant. So, to find the number of pixels that are in the 5th bin (with the default options, this will be the pixels that have exactly the value 4), do
    Dim Histogram As Variant
    Dim HistogramReport As New CWIMAQHistogramReport
    CWIMA
    QVision1.Histogram2 CWIMAQViewer1.Image, HistogramReport
    Histogram = HistogramReport(1).Histogram
    ' Now Histogram(5) contains the number of pixels in the 5th bin.
    Let me know if this helps.
    Greg Stoll
    IMAQ R & D
    National Instruments
    Greg Stoll
    LabVIEW R&D

  • Count the number of days in the selected range using Customer exit

    Hi Experts,
    we have requirment where user is asking to add a column to report, which will have 'count of days for which key figure is having values' for each of the months and the Header would be 'Day Count'
    Please let me know if its possible using Customer exit?

    Hi,
    In our report we have two characteristics site no. and product and we have 6 key figures of type quantity and Input for the report is Fiscal year/period
    So in the report Key figures are populated with values for respective site no. and product combination
    Now the user wants new column in report which will have header u2018Day countu2019 and it should Simply count the number of days in the selected range that have a volume different than 0 for key figure
    Please let me know if more details are required

  • MN05: setting the number of printer copies for the whole range of vendors

    Hi all,
    by t.code MN05 I can set the number of copies of the MM documents printed the FIRST TIME. I can do it for doc.type or vendor.
    I can't set the number of printer copies for the whole range of vendors. Should I do it for each one of them?
    Thanks
    Gandalf

    Unfortunately,
    setting for document type, it doesn't work for all range of vendors.
    Setting for document type, in the field "PartF" I've put in "OA". Could it depend on it?
    you do for document type and then it will cover all range of vendors.
    If you want prints for a specific vendor then set condition recrod for that vendor only.
    regards

  • Find the Number range

    Hi all;
    Can any one help me on this issue !!
    How to find the Number Range for Customer / Venodor.
    we have already assign the Number range and how to find the next availabilty number.
    I .e   I need the next  Availability  number for  Customer/ Vendor Nuber.
    Thanks
    -Ravi.

    Hi,
    Refer
    Aphanumeric number range for customer/vendor
    To get the next available number:
    Go to SNRO-> Click on Number Ranges button -> Click on status -> u will get the current number
    Also you can use FM "NUMBER_GET_NEXT" to get the next number
    CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
    nr_range_nr = '01'
    object = 'ZDOCNUM'
    QUANTITY = '1'
    SUBOBJECT = ' '
    TOYEAR = '0000'
    IGNORE_BUFFER = ' '
    IMPORTING
    number = v_docno
    QUANTITY =
    RETURNCODE =
    EXCEPTIONS
    interval_not_found = 1
    number_range_not_intern = 2
    object_not_found = 3
    quantity_is_0 = 4
    quantity_is_not_1 = 5
    interval_overflow = 6
    buffer_overflow = 7
    OTHERS = 8.
    Regards
    Sumana

  • Restting the number ranges

    Client Copy: Each time a client copy is made, material movement postings cannot be processed until several number ranges are reset and the user gets the message Express document “update was terminated”. These number ranges can be reset thru SNRO. But identifying what objects need to be reset also difficult. I don’t know how to identify what objects need to be reset the number ranges. This problem occurs each time a client copy is made (The user faces). I am trying to reset all the objects number ranges automatically by writing a custom program. Each time the client copy is made, the user can run this program and be able to reset the number ranges for all objects automatically. Can anyone help me if I can write a program to achieve this and how?
    Thanks,
    Sobhan.

    HI,
    Try to use the program RSSNR0I0 for resetting the number range object. This will accept only one number range object.
    Otherwise create a new program and call the FM NUMBER_RANGE_INTERVAL_INIT with the number of objects one by one.
    Please let me know if it works.
    Thanks,
    Naren

  • How can prevent the number range of document skip

    Dear friend,
         I want to preverify the cancel billing document process via VF11. If the FI period is closed, the cancel billing document (which refers to closed period) process  is not permitted.
         I found the user exit: SDVFX001 (User exit header line in delivery to accounting) and implemented / activated it already.
         My user exit is work, the cancel process of old billing document is denied, but !!! I found that the number range of cancel document is reserved already (but the document is not create). So the number range of cancel document is skip  in the next time when I cancel other billing document....
         Are there any exit or BTE to prevent this case?
    Thank you in advances,
    Sam.

    Hi,
    In your user exit itself, try finding out any FM available for closed period.
    Thanks,
    Sriram Ponna.

  • Program/User exit to maintain the number ranges at plant level

    Hi Everybody,
    Could u please tell me program/user exit to maintain the number ranges at plant level.
    Thanks & Regards,
    Piyush

    Hi
    Do you want to maintain all the number range Objects
    For Material Master you can use the enhancement  MGA00002
    For PO Nu,ber ranges you can use the enhancement MM06E003
    Thanks & Regards
    Kishore

  • Reset the Current Number in the Number Ranges

    Hello Friends,
    Is it possible to change the current number in the number range based on a condition?
    My requirement is,  I have generated the number using the Function Module NUMBER_GET_NEXT.  If the user clicks on Save then the number generated is saved. But if the user doesnt click on save, the number is not saved but the number is wasted. Now if I create a new number that will be the next number in the sequence. I want that if the user has not clicked on save then the same number should be generated again, so that the numbers are not wasted.
    regards,
    Raju.

    Hi
    I don't hink it is possible with the number ranges.
    Yes, as you said some numbers will be wasted in between.
    But in real PRoduction we don't click just like that on SAVe button wasting the numbers.
    Check the Tcodes SNUM and SNRO.
    Reward points if useful
    Regards
    Anji

  • T.code F-01, error message  F5150: the number range ...  is missing

    Hi All,
    creating by F-01 a 'sample document', SAP gives me the message F5150: "... the number range ...  is missing ..."
    But in OBA7 and FBN1 I can't find the missing range.
    Is there a different customizing step to create a range for sample document?
    Thanks
    Gandalf

    Refer this link.
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/96/8b434c43ce11d189ee0000e81ddfac/frameset.htm
    You can basically use the sample document as a reference while posting an accounting document.  Use T Codes FBR1/FBR2.

Maybe you are looking for