Remove Decimals from Number

Hi Gurus,
Before posting this thread, i serached SDN and i could not find proper answer for my requirement.
My Question is , i have a text filed which will contain a numeric value. say .5 . the desired output should be 0050.
means , it should remove the decimals from text and result output shuold contain 4 characters. (It should consider 2 numbers before decimal and 2 numbers after decimal)
any suggestions pls..
Thanks
Meher

See this code:
v_number = '.5'.
v_whole = trunc( v_number ).
v_deci = frac( v_number ).
concatenate v_whole v_deci into v_newnum.
you may need to put the whole and deci into a character variable; just adjust accordingly...
v_whole and v_deci are type N of length 2
hope this helps
Edited by: Chris C. on Jul 28, 2009 8:39 AM

Similar Messages

  • Remove decimals from the Bar Graph..

    Hii,
    How to remove the Decimals from the Bar Graph.
    I am using Reports 9i.
    I have created a Bar Graph in that It is showing the decimals bar. Actully in the query i hv used the inbuild function Round but while i run the report it is showing the decimals.
    It is showing if the value is under 10 then 3 decimals. Value is between 10 to 100 then 2 decimals. 100 to 1000 is 1 decimal.
    How can i remove the same.
    Also in the X axis how can I put the description of a field. While i take the description fiel it is showing some exception error.
    Description field width is 50 Now I am showing the code field only have 3 digits.
    Please check this also...
    remove decimal places
    Thanks in Advance
    Jithesh

    Hi Simran
    1. You can get proper variable without decimal point.
    2. Use function "FLOOR" and get the output value assigned to variable defined in step 1.
    data : wv_wh_no type p decimals 0 .   -
    you take as per your requirement
    Let say,
    wv_dec_no = 1.0001.
    w_no = FLOOR(wv_dec_no).
    Hope it will help you.
    Regards,
    Anil Salekar

  • Can't remove decimals from chart value axis

    After several hours trying to create a simple bar graph in Pages and the same in Numbers (iWork '08) for a class assignment, I am at a loss. To any kind soul who can help, I will be very grateful.
    Here is the dilemma.
    In Numbers as well as trying this in Pages '08, I selected a blank document, clicked on the Chart icon, and in the Chart Data Editor I entered titles for 2 rows, and title for 3 columns along with their values. Then in the Chart Inspector I entered the following values under Value Axis Format: minimum= 3, Maximum= 26, and Steps=9.
    I Need to have along the y-axis (the left column, from bottom to top) the numbers starting from 3 up to 26, in increments of 3, i.e. 3-6-9-12-15-18-21-24 and at the top 26.
    I have the correct sets of columns which is: 3 sets of bar graphs (2 bars side-by-side, 3 sets).
    The problem I have is that I NEED the left column of numbers, my y-axis, to be whole numbers. But Pages keeps converting them into whole numbers with 3 decimal places to the right. How can I fix this? I also keep running into a problem when entering values in Minimum-Maximum-Steps, in which I'll put 26 or 27 as a Maximum, 3 in Steps, and the Max changes to something like 96. This happens a lot, although the number changes to different values than what I enter. My Chart is a standard chart, not a stacked chart. I've tried searching and find no answers to this. And I do need the step increments to be exactly as I stated. There must be a way. I tried it in Excel 2002, and was able to do the entire chart in about 5 minutes. Numbers must be able to do this, I'm not even using calculations or formulas.
    I would insert a picture of the way the chart needs to look here, but I don't know how to do that in Posting this question.
    In God's Harmony,
    RODDY

    It would be useful to give us the used values so we may give you a response.
    I made a test with this setting:
    Minimum 5.0
    Maximum 9.5
    Steps 5
    and I got: 5.0, 5.9, 6.8, 7.7, 8.6, 9.5
    which is perfectly correct.
    It's our duty to check that ((Maximum - Minimum) / Steps) * 10 is an integer.
    Yvan KOENIG (from FRANCE lundi 8 septembre 2008 15:19:14)

  • How to remove commas from number in Bex analyzer

    Hello gurus,
    I am having a requirement where i need to show the number without separating with commas. for example 23,34,780 as 2334780 in the report for a particular column only. I know that it is possible using the macros but i am unaware of the VB code.
    I have created the same using  the BEX Analyzer of BI 7 by creating the workbook and maintaining the properties for that columns. But right now i am working in BW 3.5 when i tried the same in this i am getting the run time error and disconnecting from the SAP.
    So now i have decided to go with the Macros pls help me with the VB code.
    Regards

    Thanks for ur reponse Danny.
    I have edited the macro and paste the below code changing the column number.
    Sub Macro3()
    ' Macro3 Macro
        Application.Goto Reference:="Macro3"
        Columns("R:R").Select
    Selection.NumberFormat = "#############"
    End sub.
    But its not working, still i am getting the commas in between the key figure. kindly let me know if i need make any other change bcoz i havent work on macros VB code earlier.
    Regards
    Edited by: KK on Jun 16, 2009 2:17 AM

  • I replaced my iPhone with a Galaxy 5 and am not receiving all of my text messages. The sales person told me to remove my phone number from iTunes to stop this from happening. Is that true? What does iTunes have to do with text messages?

    I replaced my iPhone with a Samsung Galaxy5 and I am not receiving all of my text messages now. The rep at the store told me to go to iTunes and take my phone # off of the account and that would fix the problem. Is that true? What does iTunes have to do with text messages anyway?

    You need to remove your phone number from the iMessage system.
    Read here: http://support.apple.com/kb/ts5185
    ~Lyssa

  • How can i remove my phone number from imessage and just use email address ?

    Hi all
    I've searched all the forums and still can't find an answer for what i need (what i think i need!)
    I have an iphone without a data plan so whenever anybody who is registered with imessage sends me a message i will not
    receive it until i am back on wifi.
    What i want to achieve is to be able to receive sms messages from imessage users when i am not on wifi and then imessages when i am back on wifi.
    My assumption is that if i can unlink my mobile number from iMessage and only have it associated with my email address that this should work, but i cannot seem to remove my phone number from imessage, in the settings > iMessage > send and receive it will allow me to un-tick the associated email addresses but my phone number is greyed out and will not allow me to untick.
    On my home Mac i can go into messages app and deselect the phone number but not on the iphone.
    One solution says to deregister my phone on https://supportprofile.apple.com/ which i have tried (i can't see how that would work anyhow as there is no phone number in that registration)
    Any advice would be greatly appreciated,
    thanks, Andy

    Regardless if using your cell phone number or your Apple ID email address, iMessage requires an internet connection via an available wi-fi network or via your carrier's cellular network. Without a data plan and no internet access with your carrier's cellular network, an iMessage addressed to your email address can be received only when your iPhone is connected to an available wi-fi network no different when an iMessage is addressed to your cell phone number.
    You cannot deselect or remove your cell phone number below you can be reached by iMessage at with iMessage on an activated iPhone. The iPhone's phone number is activated along with your Apple ID.

  • How do I remove an old phone number from my macbook imessage. My apple ID does not show the number anymore but I cannot remove it from the imessage accounts. Its driving me mad !

    Can someone please help me to remove an iphone telephone number from my imessage application. I no longer have a phone which I registered on my apple ID as a second phone. I have been on my apple ID and it does not seem to be there but cannot remove it from imessage, which still has it as an option to connect to. I am concerned that someone else who inherite this old phone will see my messages if I accidentally enable it again. I have read and re-read various postings and tried all options given but no luck, the **** thing stays there.....

    Hey Chappers64!
    Here is an article that will help you with this issue:
    iOS: Deactivating iMessage
    http://support.apple.com/kb/ts5185
    If you have already tried these steps, you will want to utilize the information at the end of the article:
    If you can't deactivate iMessage after you perform the steps above or you can't access the iPhone, please contact Apple Support.
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • How can I remove the page number from the first page of the document that is the cover page?

    How can I remove the page number from the first page of the document that is the cover page?

    If you open the Pages panel, (Window>Pages) you will see thumbnails of your master pages and your document pages. In new documents, there is usually a master called A-Master and one called None. If you drag the thumbnail of the None master onto the thumbnail of a document page, it will apply that master to that page. Presumably, you have made your page numbers on A-Master, so this will usually do the trick. If you have elements on A-Master that you need on the first page, but just not the page number, you can duplicate A-Master (which, by default will give you B-Master, but you can change the names if you like) and remove the page number on the duplicate and apply that to the document page.
    It might also be worth noting that you can apply master pages in the fly-out of the Pages panel. Go to the fly-out triangle and go down to Apply Master to Pages…, then select a master to apply and the range of pages (1-8 will give you all 8, 1, 3, 5, 7 will be the odds, 1-3, 4, 6-8 if you want continuous ranges and individual pages).

  • How can i remove the phone number from the text messages that i receive in the notification center

    how can i remove the phone number from the text messages that i receive in the notification center?

    You choose whether to see text messages in Notification Center or not.  If you elect to see them, they will display the phone number (unless they are from a contact in your contacts list).
    You can choose not to see them at Settings > Notification Center > Messages.

  • How do I remove a phone number from iMessage on my Mac?

    I get a new iPhone tomorrow on a completely new number and I wanted to know how I can remove my current number from being used for iMessage on my mac so that when I get my new phone I can set it up

    HI,
    In the Finder > Go Menu > Go to Folder
    Enter ~/Library/Preferences in the dialogue box that appears (you can Copy and Paste the bold text).
    In the Preferences folder find the com.apple.iMessage.bag.plist and drag it to the Trash
    Restart Messages.
    It will list nothing in the iMessages account and you will have to Add the Apple ID.
    Once you have the new iPhone set it up for the Apple ID and the Mac version will then get a pop up asking for your to Accept which will then add the iPhone Number to the Settings.
    9:17 pm      Wednesday; November 27, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to remove a phone number from my account.

    I'm trying to remove a phone number from my account that for some reason is my mothers. Can you please remove it for me? (***)***-**76

    This is a user to user help forum and not paypal customer services. To remove a phone number >>> Log in to your PayPal account.Click the settings icon beside "Log out."You make changes to your phone numbers in the "Phone" section.                            ********************************** I give up my time to help you so a thank you or kudos would be cool.
    Marking one of my replies as a solution would be appreciated if I sorted your problem.

  • How do you remove a badge number from the app store without downloading...

    HOw do you remove the badge number icon for a program that you do not want to update from the app store.
    I have an app that is updated but i don't want the update (new ugly artwork and I am content with what the present artwork and app does)...I don't want the update. How do I remove/refuse the update and remove the number badge?
    Thanks!

    so you have an app on your phone that you do not want to update?
    But you want to get rid of that annoying badge from the appstore?
    There is a fix for this!
    Created by Elit3!
    if you post this anywhere else please acknowledge my find! thank you.
    new directions:
    1. go to itunes
    2. click applications
    3. right click on the application you want to use
    4. press show in windows explorer
    5. Copy the ipa to desktop
    6. right click and press open with
    7. open file with winrar, winzip, what ever, something so you can see all the files
    8. open iTunesMetadata.plist with PLIST EDITOR
    9. search for "itemId"
    10. Delete the number under "itemId" in between </integer>
    11. leave One number remaining. (any number)
    12. save.
    13. double click your new ipa
    14. sync
    15. No more update badge
    DONE.
    remember to backup everything you change. just in case.

  • How do I remove my mobile number from appearing in...

    How do I remove my mobile number from appearing in my profile?
    Im not gonna lie this has me heated. I never entered my mobile number in my profile, and now i cant remove it.... this is complete crap. i need help or i will just remove skype. thanks

    http://support.apple.com/kb/TS5185

  • How do I remove my phone number from my iphone so that i can continue to use it like an ipod touch and use imessages with email/apple ID?

    How do i remove my phone number from my iphone 4s so that i can continue to use it as an ipod touch and use imessages with email/apple ID?

    This article explains what to do:
    http://support.apple.com/kb/HT5661

  • How do I remove my phone number from another iCloud account so that text messages cannot be seen on another phone?

    How do I remove my phone number from another iCloud account. The issue is another phone receiving my text messages because of a shared apple ID.

    You can't remove your phone number from iMessage on an iPhone.  To prevent another phone from receiving your messages, use different Apple IDs for iMessage.  One of you should go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a different ID.  You can still share the same ID for other services such as iTunes if you want; they don't have to be the same as your iMessage ID.

Maybe you are looking for

  • Upgrade from 10.1 to 10.2.0.3

    Hi all, We're planing to upgrade from 10.1 to 10.2.0.3 in Windows 2003 SP2, but we don't have the installers. We were browsing on the web and only we found 10.2.0.3 for Windows 2008 and Windows Vista. Can this installer be used to upgrade on Windows

  • Efficient regex replace function? Help!

    Here's what I'm trying to do: Scan through a string, and replace any occurences of http://...... (until the next space) with an HTML link. Does anyone know what would be the most efficient regex replace function to do this? Thank you very much in adv

  • Trying to install Desktop Manager, could use some help.

    I'm trying to install on a PC running windows XP. did a complete uninstall per KB02206. The installer gets to this point: Installing Microsoft .NET framework 3.5 sp1 (web download). Which brings up the following Dialogue box: Please wait while setupu

  • Gap of Time of R3 and PPDS planned orders

    Hello Gurus, I'm facing an issue regarding R/3 - PPDS planned orders. The customer has the cenário that R3 and APO does not synchronize planned order on-line. R3 sends the orders on line however APO send it only in a determinated  time. As a matter o

  • HP CANVAS WITH WINDOWS 8

    Ever since I downloaded Windows 8 I can't Access HP Canvas !