Is there a way to round like MROUND into Excel?

In Switzerland we need to round to the next CHF 0.05. In Excel our Customer can do this wit MRound. Can I do this in SQL / PL-SQL as well?
Thanks for your help
Paolo

Try this
HR@TEST9> SELECT ROUND(1.018 * 20) / 20 FROM DUAL;
  ROUND(1.018*20)/20
                   1
real: 15
HR@TEST9> SELECT ROUND(1.058 * 20) / 20 FROM DUAL;
  ROUND(1.058*20)/20
                1.05
real: 31
HR@TEST9> SELECT ROUND(1.048 * 20) / 20 FROM DUAL;
  ROUND(1.048*20)/20
                1.05
real: 31
HR@TEST9> SELECT ROUND(1.018 * 20) / 20 FROM DUAL;
  ROUND(1.018*20)/20
                   1
real: 31
HR@TEST9> SELECT ROUND(1.028 * 20) / 20 FROM DUAL;
  ROUND(1.028*20)/20
                1.05
real: 31
HR@TEST9> SELECT ROUND(1.038 * 20) / 20 FROM DUAL;
  ROUND(1.038*20)/20
                1.05
real: 31
HR@TEST9> SELECT ROUND(1.058 * 20) / 20 FROM DUAL;
  ROUND(1.058*20)/20
                1.05
real: 31
HR@TEST9> SELECT ROUND(1.068 * 20) / 20 FROM DUAL;
  ROUND(1.068*20)/20
                1.05
real: 16
HR@TEST9> SELECT ROUND(1.078 * 20) / 20 FROM DUAL;
  ROUND(1.078*20)/20
                 1.1

Similar Messages

  • Is there any way to insert a sharp into excel through OLE?

    Dear Expert,
    Is there any way to insert a sharp into excel through OLE ?If have , Would you please give a sample code?
    BR Edward

    Hi,
    Check this link..[OLE2, Excel, WinWord |http://translate.google.com/translate?hl=en&sl=ru&u=http://www.sapnet.ru/] you can find the code snippets.

  • Is there a way to force the cursor into a string control when a vi is called

    In a .vi I'm wrighting I need to input a new serail number at the beginning of each run. Is there a way to force the cursor into the string control box every time the start screen returns? eliminating the need for the operator to move the mouse around and click.
    I would like to THANK all that have replied to my questions in the past. It has been a big help!
    Thanks
    TeBlues

    ah, problem solved.  what a community.
    Message Edited by Space_Flight on 11-20-2006 10:08 AM
    Attachments:
    keyfocus.jpg ‏83 KB

  • Is there a way to import Raw files into LR catalog ..including..any edits performed in an external raw file editor such as Capture One?

    Is there a way to import Raw files into LR catalog ..including..any edits performed in an external raw file editor such as Capture One?
    I can import the Raw file successfully but cannot see any edits that were applied in Capture One. Im assuming no but just checking.

    Your assumption is correct, Capture One, Lightroom and other third party raw processors have their own proprietary processes and profiles for rendering the raw data.
    They do not make permanent changes to the raw data and store the changes to an .xmp file or to a catalog file like Lightroom.

  • Is there a way to import a .pdf into a pages document and have it wrap to a 2nd page?

    Is there a way to import a .pdf into a pages document and have it wrap to a 2nd page?

    Are we talking about a spread? ie the pdf spans 2 pages side by side? Like in a magazine centrefold.
    That requires you to insert the pdf on both pages, one hanging half over to the right and the other half over to the left.
    Peter

  • HT1451 I ripped a 2-cd album to iTunes on my PC.  It downloaded as 5 separate albums.  Is there a way to combine those back into one album?

    I ripped a 2-CD album to iTunes on my PC.  It downloaded as 5 separate albums.  Is there a way to combine those back into the original one album?

    Yes there is tho it may get pretty redundant if you have many 2-CD albums as i had once. Using the "control" key select all five albums. Right click the selected albums and select "Get Info". If this is your first time it may ask you if you are sure you want to edit multiple albums. Click "Yes". Fill in / affirm the correctness of the grid in fron of you. Check all of the boxes BUT THE TRACK #  BOXES AND ARTWORK . This will tell iTunes that all of the albums are one and the same. click "ok". One album with the correct title should appear. Select all the tracks that were on the second disk and again right click and select get info. enter into the disk # space "2" of "2". If your version of iTunes is up-to-date this will make it a 2 disk album. If you would like you get select "Get Info" again just to make sure all is good.
    Hope this helps.

  • Is there any way to get this palette into photoshop CS6?

    I'm curious as to why Photoshop CS6 can't have a simple effective palette choice like this one from Fireworks?
    I'm an artist and this palette makes sense to me.  The standard issue pallette in Photoshop is a mess compared to this.
    Is there any way to get this palette into photoshop CS6?
    Thanks!

    If your talking about the Color Cubes from fireworks as shown in your screenshot, then yes.
    Save the swatches out of fireworks as an Adobe Swatch Exchange File (ASE) and then you can load them into photoshop
    in it's swatches panel like below.

  • When I import my CDs to ITunes it splits some of them into 2 or 3 separate albums. Is there a way I can combine them into one?

    When I imported my CDs into ITunes it split some of them into 2 or 3 separate albums. Is there a way to recombine them back into one album?

    If your CD has tracks with different artists, then you need to identify it as a 'compilation' CD. Select all of the tracks in the CD, then 'get info' (control-I), and go to 'Options'. Select 'yes' for 'Part of a compilation'. That should fix the problem.

  • I lost my iPhone a few days ago and I put it on the lost mode. I don't want to give up looking for it. If a person stole it, is there a way for them to get into it or is it locked? I don't want to give up!!!

    I lost my iPhone a few days ago and I put it on the lost mode. I don't want to give up looking for it. If a person stole it, is there a way for them to get into it or is it locked? I don't want to give up!!! But if there is a way that they could get in and take over my phone with a new number without me deactivating the iPhone and activating a different phone with my number.

    lost mode don't depend of the sim card. If you take your Iphone on Lost mode... anybody can use it with the original card sim or with an other one.
    Did you try to localise it ?
    But hope that thief don't make a restore of the Iphone... Call your Mobile Operator to try to block the IMEI Number.

  • Is there a way to import ONLY videos into PE8, not photos?

    I have a million photos I never intend to use in a Premiere Elements 8 production. Using the PE8 "Organizer," is there a way to import ONLY videos into PE8, not photos?

    I do not use Organizer, so may be missing something, but I would guess that one could Sort By, and choose File Type. Remember, Organizer is for the system, and does not reflect what is Imported for use in a Project - two different things. In lieu of Organizer, I use Adobe Bridge, installed with some of my other Adobe programs.
    I would also assume that Organizer does things via folders. If one does not have any aspect set to auto, I would think that it would ONLY do thumbnails for certain folders, as directed. If one has their stills in other folders, then only AV Assets would be seen by Organizer.
    Maybe some Organizer guru will have better directions for you. I am just thinking here and speculating.
    Good luck,
    Hunt

  • Is there a way to import specific information into a form?

    is there a way to import specific information into a form?

    No, we currently don't support preopulating a form.

  • Is there a way to import iCal data into a numbers spreadsheet?

    Is there a way to import iCal data into a numbers spreadsheet?

    If you want to import lots of calendar events into Numbers, the general way to proceed would be to:
    export in CSV (character-separated values) from iCal (Calendar)
    import the CSV into Numbers.
    1. can be accomplished via AppleScript (perhaps in an Automator workflow) or, perhaps more convenient, a dedicated exporter app such as Export Calendars Pro or competitors.
    2. Importing into Numbers is usually as easy as File > Open and choose the CSV file.
    SG

  • Is there a way to import "Jewish Holidays" into iCal? On Gmail calendar or Outlook you can add the Jewish Calendar so all Holidays are added each year, is this available for iCal too?

    is there a way to import "Jewish Holidays" into iCal? On Gmail calendar or Outlook you can add the Jewish Calendar so all Holidays are added each year, is this available for iCal too?

    Susy,
    Pick/Click the appropriate iCal link from Jewish Holiday downloads for desktop, mobile and web calendars | Hebcal Jewish Calendar.

  • __Is there a way to 'merge' multiple curves into a single curve?

    __Is there a way to 'merge' multiple curves into a single curve?
    By this I mean I have file with 2-12 curve layers - I wanted to 'merge' the curves so that I can end up with a single curve with the attributes of many. Maybe is there a script that would do this?

    I don't mean to be critical, but how do you get to a situation where you have 12 successive Curves layers?
    The advantage to a Curves layer is that you can adjust and re-adjust it to your heart's content.
    If you're habitually adding new Curves layers one over the other, maybe you should re-evaluate your process of working...  Perhaps the way you're thinking you should just work at a high bit depth and do repeated Curves operations on the pixels?  Or put some time into retraining yourself to not add a new Curves layer but to manipulate the one that's already there.  There are some nice new enhancements (e.g., the "finger" subtool that allows you to choose a spot in the image and manipulate that part of the curve).
    Again, I'm not trying to criticize you, just looking to see if maybe there's a way to avoid getting to the point where you need to combine Curves in the first place, since there's no direct "Merge Curves" capability, outside of just stamping a set of image and adjustment layers into pixels.  For completeness I suppose I should mention how to do that...  You can Stamp any combination of visible layers into a single layer of pixels (effectively combining all the Curves layers et. al.) by pressing Control - Shift - Alt - E.
    -Noel

  • Is there a way to wire my iPhone into my household landline and use it without a sim as such ? any advice would be greatly appreciated

    is there a way to wire my iPhone into my household landline and use it without a sim as such ? any advice would be greatly appreciated

    Mobile devices do not get "wired" to anything.
    There are devices that will allow for connecting a mobile phone via Bluetooth to the base station which is plugged into the phone lines in the home. Then calls can be placed/received from any phone in the home.
    There are cordless phones that do a similar function.
    Search google.... this has nothing to do with Apple or the iPhone specificially.

Maybe you are looking for