How can I get decimal part of a number?

Hello!
If a Have a decimal number, I want to get the decimal part.
Example ( 33.455 should return 455)
Thanks!
Edited by: fvilaca on Mar 11, 2009 6:32 PM

Hi,
I don't understand you (my solution and OrionNet's work fine):
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL>
SQL> with data as(
  2  select 3.56 as val from dual)
  3  select to_number(regexp_replace(to_char(val), '^[0-9]+\.', '')) from data;
TO_NUMBER(REGEXP_REPLACE(TO_CH
                            56
SQL>
SQL> SELECT   TO_NUMBER (SUBSTR ('3.56', INSTR ('3.56',
  2                                               '.',
  3                                               1,
  4                                               1)
  5                                        + 1)) mydecimal
  6    FROM   DUAL;
MYDECIMAL
        56
SQL> Regards,

Similar Messages

  • How can you get your ipod touch serial number from apple beacause my ipod was stolen

    how can i get my ipod serial number from apple

    http://support.apple.com/kb/HT2526?viewlocale=en_US
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • How can I get the orclownerguid (unique user number) in Java Portlet?

    Hi,
    I find a unique number for each portal user in OID, it calls orclownerguid.
    And I try to obtain this number in my portlet Java with the JPDK.
    How can I get the orclownerguid in Java Portlet with JPDK?
    thanks
    regards
    jerome laforge

    Hello,
    I just realized that I missunderstood your question.
    We have several way to pass (and send) parameter to a portlet:
    - OracleAS Portal page parameters that allow the browser user to define the way the parameter is send to the portlet
    - generic URL parameter (public parameters)
    - private paramter (a parameter that is targetted to a single portlet instance)
    In you case, you can use public parameter, but you have to explicitly says that your portlet consume URL parameters, so set the passAllUrlParams tag to true in the provider.xml file.
    Also I invite you to read the sample we have in the PDK that show how to use private parameter and page/portlet parameters, and the associated articles you can find on http://portalstudio.oracle.com
    Regards
    Tugdual Grall

  • How can I get  the part image from a rectangle region?

    hi,
    I'm trying to draw a rectagle region on a picture with mouse and crop it. but the rectangle is not vertical along x-axis.that is to say, there is a angle between x-axis and the base of the rectangle. I don't know , how can I do it. Can someone give me some tip or some java-code. Thank you very much in advance.

    I completely misunderstood your question. As I read it again it seems clear and straight-forward. I'm sorry. Let's see if this is closer.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class CropImage
        BufferedImage original;
        CropPanel cropPanel;
        CropSelector selector;
        public CropImage()
            original = getImage();
            cropPanel = new CropPanel(original);
            selector = new CropSelector(cropPanel);
            cropPanel.addMouseListener(selector);
            cropPanel.addMouseMotionListener(selector);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(getUIPanel(), "North");
            f.getContentPane().add(new JScrollPane(cropPanel));
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
        private BufferedImage getImage()
            String fileName = "images/coyote.jpg";
            BufferedImage image = null;
            try
                URL url = getClass().getResource(fileName);
                image = ImageIO.read(url);
            catch(MalformedURLException mue)
                System.err.println("url: " + mue.getMessage());
            catch(IOException ioe)
                System.err.println("read: " + ioe.getMessage());
            return image;
        private JPanel getUIPanel()
            final JButton
                mask    = new JButton("mask"),
                crop    = new JButton("crop"),
                restore = new JButton("restore");
            ActionListener l = new ActionListener()
                public void actionPerformed(ActionEvent e)
                    JButton button = (JButton)e.getSource();
                    if(button == mask)
                        selector.mask();
                    if(button == crop)
                        selector.crop();
                    if(button == restore)
                        cropPanel.restore(original);
            mask.addActionListener(l);
            crop.addActionListener(l);
            restore.addActionListener(l);
            JPanel panel = new JPanel();
            panel.add(mask);
            panel.add(crop);
            panel.add(restore);
            return panel;
        public static void main(String[] args)
            new CropImage();
    class CropPanel extends JPanel
        BufferedImage image;
        Dimension size;
        GeneralPath clip;
        Point[] corners;
        Area mask;
        boolean showMask;
        Color bgColor;
        public CropPanel(BufferedImage bi)
            image = bi;
            setSize();
            clip = new GeneralPath();
            showMask = false;
            bgColor = getBackground();
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int w = getWidth();
            int h = getHeight();
            int x = (w - size.width)/2;
            int y = (h - size.height)/2;
            g2.drawImage(image, x, y, this);
            if(showMask)
                g2.setPaint(getBackground());
                g2.fill(mask);
            else
                g2.setPaint(Color.red);
                g2.draw(clip);
        public Dimension getPreferredSize()
            return size;
        public void setClip(Point[] p)
            corners = p;
            clip.reset();
            clip.moveTo(p[0].x, p[0].y);
            clip.lineTo(p[1].x, p[1].y);
            clip.lineTo(p[2].x, p[2].y);
            clip.lineTo(p[3].x, p[3].y);
            clip.closePath();
            repaint();
        public void clearClip()
            clip.reset();
            repaint();
        public void setMask(Area area)
            mask = area;
            showMask = true;
            repaint();
        public void setImage(BufferedImage image)
            this.image = image;
            setSize();
            showMask = false;
            clip.reset();
            repaint();
            revalidate();
        public void restore(BufferedImage image)
            setBackground(bgColor);
            setImage(image);
        private void setSize()
            size = new Dimension(image.getWidth(), image.getHeight());
    class CropSelector extends MouseInputAdapter
        CropPanel cropPanel;
        Point start, end;
        public CropSelector(CropPanel cp)
            cropPanel = cp;
        public void mask()
            Dimension d = cropPanel.getSize();
            Rectangle r = new Rectangle(0, 0, d.width, d.height);
            Area mask = new Area(r);
            Area port = new Area(cropPanel.clip);
            mask.subtract(port);
            cropPanel.setMask(mask);
        public void crop()
            Point[] p = cropPanel.corners;
            int w = p[2].x - p[0].x;
            int h = p[1].y - p[3].y;
            BufferedImage cropped = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = cropped.createGraphics();
            g2.translate(-p[0].x, -p[3].y);
            cropPanel.paint(g2);
            g2.dispose();
            cropPanel.setBackground(Color.pink);
            cropPanel.setImage(cropped);
        public void mousePressed(MouseEvent e)
            if(e.getClickCount() == 2)
                cropPanel.clearClip();
            start = e.getPoint();
        public void mouseDragged(MouseEvent e)
            end = e.getPoint();
            // locate high and low points of rectangle from start
            int dy = end.y - start.y;
            int dx = end.x - start.x;
            double theta = Math.atan2(dy, dx);
            double spoke = start.distance(end)/2;
            double side = Math.sqrt(spoke*spoke + spoke*spoke);
            Point[] corners = new Point[4];           // counter-clockwise
            corners[0] = start;                       // left
            int x = (int)(start.x + side * Math.cos(theta + Math.PI/4));
            int y = (int)(start.y + side * Math.sin(theta + Math.PI/4));
            corners[1] = new Point(x, y);             // bottom
            corners[2] = end;                         // right
            x = (int)(start.x + side * Math.cos(theta - Math.PI/4));
            y = (int)(start.y + side * Math.sin(theta - Math.PI/4));
            corners[3] = new Point(x, y);             // top
            cropPanel.setClip(corners);
    }

  • How can i get an old itunes invoice number if I permanently deleted it from my email

    I need an old itunes invoice number to fix an itunes ID issue but i delete these invoices every three months from my email and email trash i can i get a copy

    Login to the iTunes Store.
    From the menu bar click Store > View My Account
    Click Purchase History from the Account Information window.

  • How can I get a report with total number of pages printed on my HP Officejet Pro 8610?

    Since knowing the number of pages I print is so critical to a choice of using the "HP Instant Ink Plan" or not, how can I find the total number of pages I have printed on my brand-new (installed 2 days ago) 8610?  And if I can, is it a "resettable" or rolling total?  Don't see anything in user guide and a search yields nothing usable on this blog.
    Printer is installed wirelessly on an older PC with Windows XP SP3.  I can also of course intstall it with network cable but so far it works OK on my home network without network cable.  If it matters which OS, I also have a Lenovo laptop running Vista on which I can install this printer. 
    Please do not respond that I can find the total by counting the number of pieces of paper I have.  Surely the internals of this fine machine must have the requested data so that HP can tell my usage if I select the monthly ink plan!
    This 8610 was a good buy (net $89.00 after trade-in of my six year old J36xx Deskjet) at Office Depot/Max which of course influenced my decision to buy it.  So far I am very happy with printing qualities and speed, have not tried the scanner yet and will probably never use the fax since I have no land line phone. 
    Thanks,
    Harry
    This question was solved.
    View Solution.

    Hi,
    Section #2 of the Printer Ststus report will tell you. Please try:
    Printer status report
    Use the printer status report to view current printer information and ink cartridge status. Also use the printer status report to help you troubleshoot problems with the printer.
    The printer status report also contains a log of recent events.
    If you need to call HP, it is often useful to print the printer status report before calling.
    To print the Printer Status Report
    1. From the printer control panel display, touch and slide your finger across the screen and then touch Setup.
    2. Touch Print Reports and then touch Printer Status Report.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • TS1702 I made a request to update an App in my iPad, but I found out that it was not supported. How can I get rid of the annoying number from the App Store now?

    I don' t want to loose my data!!

    As of the current version, I don't believe there is a way to tell the App Store app to ignore updates. You can send Apple feedback at http://www.apple.com/feedback/, but in short there is nothing you can do. As long as you don't try to update the app (either pressing the update button or update all), the app should continue to work fine with your data remaining intact. It has been a while since I've tried to update an app that isn't supported (last time was under iOS 3 or 4), so I can't comment about what would happen if you did try to update it. (My best guess is it will display an alert saying it is not compatible, and leave the previous version there, but not take away the 'update' in the APp Store app updates page).

  • How can I get a count of the number of emails in my inbox folder (not just unread, but total) to display on the folder list?

    I use to have a count of the total number of emails in my inbox. This was listed next to "inbox" in my folder list. With the latest version, this is gone and I can't find anything in the settings that can bring back that feature. I can see the number of emails by right-clicking the folder, but I'd love to be able to just see it at a glance again.

    Do you have this add-on?
    https://addons.mozilla.org/en-US/thunderbird/addon/extra-folder-columns/
    http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • How can we get Delivery Slip and Invoice number for the SO in custom Report

    Hello,
    I am developing a new report for the Sales Order.For this , I have to diplay the Deliver slip and Invoice number.
    Could you please explain the logic for this.
    Thanks and Regards
    NTR

    Hi,
    Pass sales order number to table VBFA-VBELV. You will get the complete doc flow. VBTYP_N differentiate whether it is delivery,GI or invoice etc. (Check for domain values for more info on this)
    Thanks,
    Vinod.

  • How can i get my iphone 5s  serial number? its off and i dont have the box

    i want to take my iphone to the apple store but they ask for the serial number for the phone and my phone is off doesnt charge and i lost the box

    With iTunes on your computer assuming you have synced your iPhone with iTunes and/or backed the iPhone up with iTunes.
    http://support.apple.com/kb/ht4061
    You shouldn't need the serial number with taking it to an Apple Store unless it has changed. Your cell phone number should be enough.

  • I have several devices under my apple id. If somebody contacts me all the other devices are ringing. How can I get rid of phone numbers in face time

    Hi, i updated to ios 8
    I have several devices under my apple id account. 2 iPhones (me and my wife ). 2 iPads also me and my wife and my iMac
    The problem is that if somebody calls me for example for face time all the other devices are also ringing, because in face time my phone number is showing and also my wife's phone number. How can I get rid of my phone number on her iphone and ipad and vice versa
    Please help
    Rgds
    Hans

    Hans Oranje wrote:
    The problem is that I can not  verify her id on message and on Facetime
    has that to do that the ipad has no tel number of course?? Should I leave my id number on her iPad ??
    That isn't due to not having a phone number on her iPad.  You can use FaceTime with any iPad using an email address as the "phone number".  And if her iPad isn't a first generation iPad, if she uses the same Apple ID for FaceTime on both her iPhone and iPad, her iPhone number can be used as well (see iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage).
    If her iPad is not verifying her Apple ID for FaceTime it's probably because the Apple servers are busy.  Keep trying and it should verify.  If you continue to have problems with this, look through the troubleshooting steps here: iOS: Troubleshooting FaceTime and iMessage activation.

  • My Ipod was stolen and I need the serial number how can I get it

    My Ipod was stolen and I need the serial number. How can I get this?

    Finding serial number for a device - https://discussions.apple.com/message/18246553 - from box or backup file, not from Apple.
    http://support.apple.com/kb/HT2526 - You can use My Support Profile to find a list of serial numbers that have been purchased or registered with your Apple ID.
    My Support Profile - https://supportprofile.apple.com/MySupportProfile.do

  • HT1941 Please, my Mackbook Air was stoled and I have the invoice, but do not have serial number. How can I get it?

    Please, my Mackbook Air was stoled and I have the invoice, but do not have serial number. How can I get it?

    The serial number would also be on the box if you still have that.

  • Please help how can I get Number of activations changed?

    How can I get my iPads reset for number of activations? I have had an original iPad and two iPad 3 and now 3 iPad Air due to defective tablets.They were replaced for technical issues. I keep getting this message on both devices in BAM2 E_AUTH_BAD_DEVICE_KEY_OR_PKCS12
    I have not even read the book I originally purchased from BAM. Please help.

    They'll know more in the Adobe Digital Editions Forum

  • I have a new ipad.  I can't get support without my serial number.  Ipad won't turn on.  I ordered it from Target so I have no receipt.  I can't get telephone help without serial number.  What to do?

    I have a new ipad.  I can't get telephone support without my serial number.  The ipad won't turn on.  I order it from Target and there is no serial number on the invoice.  How can I get telephone help without serial number?  Please help!

    The Serial Number is on the back of your iPad.

Maybe you are looking for

  • Premiere Elements 12 opens for admin users but not general users.

    Error: Premiere Elements has encountered an error....Src\Core\Preferences.cpp-347 Windows 7 box. Any suggestions? Users have rights to all Adobe folders...

  • AVCHD???

    I am using a Sony HDR-SR1 camcoder. I want to record and display AVCHD video which calls for an approximation of HD (TV) 1440 x 1080 or 720. Clearly my monitor (Apple 30 "cinema") display and computer Mac Pro should be able to handle images of this s

  • Using a stylus on the PlayBook

    Hi I have a PlayBook with a screen protector that I purchased from Amazon.  I recently watched someone using "penultimate", a note taking app, on the iPad (no screen protector).  It looked so simple. I figured I just had to have a note taking app, so

  • Where can I edit the color of the text form/bar?

    On some sites I can't see what I type when I've set a dark theme (in my case: Bluemind Deepdark Theme). Is there a option to change the color of the textbox? How can I edit this?

  • ITunes 7.5 Won't Run - Says it is looking for Drive f:/

    I have my Itunes on my external hard drive. Typically I have not had a problem downloading updates for Itunes onto my hard drive (drive g:/). But for the past few updates, including 7.5, I can download the update, but when I go to run it, an error co