Replace Function removing Zero from the end.

Hi ALL,
I'm runing following query
select REPLACE(52000.50,'.') from dualwhich is giving me output as
*520005*
But I need last zero also in the output. like *5200050*
Please help me if you have any solution.

user2988171 wrote:
Thanks it worked only small chane in the above query..
select REPLACE(to_char('52000.50','999999.99'),'.') from dual Edited by: user2988171 on Jul 30, 2010 4:38 PMYou broke it again.
If you have a string and not a number right from the beginning then there is no reason to use TO_CHAR.
Simply run
select REPLACE('52000.50','.') from dual;Or use the correct version from Toon if you enter a number value.
Btw. If it is a number you could also simply muliply it by 100.
select 52000.50 * 100 from dual;Edited by: Sven W. on Jul 30, 2010 2:58 PM

Similar Messages

  • Removing zeros from the application

    hi, we have several users that have loaded zeros instead of blanks or #missing into their webforms and have lots of zeros that are taking up needless space. i was originally thinking of locking and sending #missing where there are zeros, but have realized this will be a very long chore. we have mitigated the issue with users by changing "0" into blanks in user's excel sheets before pasting results in their sv webforms but i'm most concerned about data already in the db.
    what would be the best course of action? could we create a calc script that could replace the "0"s with #missing? that seems like an easy solution if we know the correct syntax and all that good stuff. i pose this question as i imagine others have seen this issue and probably know a really good fix.
    we are on planning and EAS 9.3 as our administrative tools. please let me know if you need additional info.
    thanks, tom

    There are two options that come to me
    1. Export the data in column format and create a rules file that converts zero values to #missing when loading. This way you have a backup in case anything goes wrong
    2. Write a calc script on a dense member where it divides by itself. Something like Local = Local/Local * Local; Any division by zero is #missing. Of course you have to pultiply by the value to get the original value back
    5/5 * 5 = 5
    0/0 * 0 = #missing
    If you do the first option, you would have cleared the database so the reload will defrag it. IF you do the second option, you will need to run a forse restructure to reep the benefits.

  • Removing zeros from data stream

    Hi
    I have incoming data (plz see attached diagram which shows the 2 states of the for loop '0' and default) which is a 1-D array of 64 bit real data .....it goes through the loop which removes zeros from the array.
    As I have 3 elements in the 1-D array (call them x,y,z ), the loop works very well for all values of 'y' and 'z' .
    However when x gets towards 1 and below say 10e-3 (it never is a negative number), the loop is rounding everything to 1 and then when the value gets between 1 and 0 (10e-3 for example) the loop leaves it out altogether and I just get y,z  values saved.
    Plz help me sort this out .
    Cheers
    Baz
    Attachments:
    zeros.PNG ‏25 KB
    zeros.PNG ‏25 KB

    If you want a tolerance comparison, try the attached VI.  I rewrote it from one in vi.lib after an earlier post.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    CheckForEquality(DBL).vi ‏23 KB

  • Remove prefix at the end?

    I'm using apple scripts with Automator to remove prefix from files. How can I remove prefix at the end? For example, the file name is test01.mov. I want it to be test.mov
    I have found this script but this script works in front. I'm not I programmer and I can't make any sense of the script.. Can any one help me out?! Thanks!
    repeat with thisFile in input
                        tell application "Finder"
                                  set fileName to name of (thisFile as alias)
                                  set fileName to (do shell script "echo " & quoted form of fileName & " | sed 's/^[0-9]*//'")
                                  set name of thisFile to fileName
                        end tell
              end repeat

    I can't help with Automator or scripts, but clarifying your question -
    A 'prefix at the end' is called a suffix. By definition, a prefix can only be at the beginning of something.
    And, I think you want to remove something from the end of the file's name (the filename) rather than from the file itself.

  • Removing zeros on the excel download

    I wanted to know how we can remove zeros from the kebtr at the excel download through ALV without converting it to a type c. for now I am converting it to type c and then validating it this way :
    if tb_main-kebet = 0.
        tb_main1-kebtr = space.
      endif.
    But because of this the formats are not ok and user insists that it should be a numberic field for him.
    Thank you very much.

    Hello Kris,
    I am able to see the data properly in XLS File.
    Use fieldcatlog no_zero = 'X'.
    Now run the transaction -> click on XL Icon ( if you do not get the data properly using navigation),now see the results here.
    you can save same xls file into local machine too.
    Thanks
    Seshu

  • BAPI to remove leading zeros from the serial number

    Hi All ,
    plz can anybody suggest me the alternative BAPI for 'BAPI_SERVNOT_MODIFY_DATA ',whose function is to delete the leading zeros,from the serial number.
    Thanks.

    Perhaps instead of using a BAPI you can code it like this.
    DATA:serial(10) TYPE n VALUE '0000340078',
    pos TYPE i VALUE 1.
    START-OF-SELECTION.
      WHILE pos <= 10 AND serial+pos(1) = 0.
        pos = pos + 1.
      ENDWHILE.
      REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
      WRITE serial.

  • A query on removing additionally padded zeroes from the pernr.

    Hi ,
    How can i remove the padded zeroes from the pernr, Ex pernr is 8 chars and if pernr has 6 chars it has to remove appended 2 zeroes from the left and should only print the 6 chars with no appended zeroes
    Thanks

    Hi Khaleel,
    Use FM <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>
    Reward if useful.
    Thanks
    Aneesh.

  • TypeError: Error #1006 - Removing MovieClip from the stage

    I have a movie clip that is called to the stage and once the movieclip is finished it calls a function that removes it from the stage. The code works but I get an error message about 4 seconds after the movie clip ends.
    Here’s the error message:
    TypeError: Error #1006: exitWordMicroscopic is not a function.
                    at ASvocabulary_microscopic/frame110()[ASvocabulary_microscopic::frame110:1]
    Here’s the stage code:
    //************************Removes the movieclip from the stage and enables the button.*************************
    function exitWordMicroscopic():void
                    bnt_vocab_microscopic.mouseEnabled = true;
                    removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
                    //Vocabulary buttons
                    if (event.target == bnt_vocab_microscopic)
                                    bnt_vocab_microscopic.mouseEnabled = false;
                                    SoundMixer.stopAll();
                                    addChild(word_Microscopic);
                                    word_Microscopic.x = 47;
                                    word_Microscopic.y = 120;
    Here’s the code inside the movie clip. This is what the error message is referring to:
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();
    What am I doing wrong?

    Here' how the code looks now:
    Objective: To remove the current movieclip while it's playing so that it does not show on the next (or previous) frame.
    Here’s the stage code:
    var word_Microscopic:ASvocabulary_microscopic = new ASvocabulary_microscopic();
    //Removes the movieclip from the stage and enables the button.
    function exitWordMicroscopic():void
        bnt_vocab_microscopic.mouseEnabled = true;
        removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
        //Vocabulary buttons
        if (event.target == bnt_vocab_microscopic)
            SoundMixer.stopAll();
            bnt_vocab_microscopic.mouseEnabled = false;
            addChild(word_Microscopic);
            word_Microscopic.x = 47;
            word_Microscopic.y = 120;
            word_Microscopic.play();
    //This button takes the user to the Main Screen
        if (event.target == bnt_ReadGoHome_1)
           // exitWordMicroscopic(); [If I use this function I get this error ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.]
            SoundMixer.stopAll();
            gotoAndPlay("1","Main");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    //This takes the user to the next frame.
    if (event.target == GoNext_1)
            SoundMixer.stopAll();
            gotoAndPlay("2");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    Here’s the code inside the movie clip.
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();

  • Remove "zero" from word reports in nav 2015

    Hello Friends,
    I have a problem with reports made in Word nav 2015.
    When a texts is added to the salesline with no items or prices attached, the report generated in Word shows a "zero" at the end of the line for each field in the report.
    In the RDLC report builder there is a function BlankZero, how do you get this functionality in Word ?
    Hope you have some tricks to solve this issue :) 

    Hi
    you can use the function Module
    CONVERSION_EXIT_ALPHA_OUTPUT in the start routine
    to test this go to SE37  --- give the CONVERSION_EXIT_ALPHA_OUTPUT -
    >display -
    > F8
    in the input give 000000456
    and execute
    the out put will be 456
    for getting Zeros you can use
    CONVERSION_EXIT_ALPHA_INPUT--- to remove leading zeros
    Santosh
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:52 PM
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:54 PM

  • Removing zeros at the begining

    hi,
    How to remove zeros at the begining of a variable value irrespective of the length of that number
    for example,
    data:var type int4.
    var = '0000012434'.
    var= '0003423365'
    var= '0436509843'.
    I want to remove all zeros at the beginning.
    the purpose is I am passing this to a function module which can not allow intial zeros.
    Please help me with code

    Hi,
    CONVERSION_EXIT_ALPHA_OUTPUT
    converts any number with zeroes right into a simple integer.
    Ex:
    '00001234'-->1234
    CONVERSION_EXIT_ALPHA_INPUT
    converts any number into a string fill with zeroes, with the number at the extreme right
    ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.
    Example:
    (Input field and output field are both eight characters in length)
    '1234 ' --> '00001234'
    Regards,
    Omkaram.

  • Convert Double to String without zeros at the end

    Hello,
    how can i convert a double-numeric to a string? I know how can do it but not how i can do it in a fast way.
    When i use the "Number to Fractional String"-Object then a number
    1,2 --> is canged to 1,200000
    1,0 --> changed to 1,000000
    what can i do that there are no zeros at the end?
    Currently i´m reading the reversed string in a loop to remove the zeros, but this i to slow i think.
    Is there a fast way?
    Thanks for your help

    Extract from the LV help :
    Select Tools»Options to display the Options dialog box and select
    Front Panel from the Category list to display
    this page.
    Use this page to set front panel options.
    This page includes the following components:
    Open the control editor with double click—Allows you to
    double-click a control to display the Control
    Editor window. Use the Control Editor window to customize
    the appearance of a front panel object. This checkbox is unchecked by default.
    Use localized decimal point—Uses the decimal separator for
    the operating system instead of the period. This checkbox is checked by default.
    Remove the checkmark from this checkbox if you want LabVIEW to use periods in
    all cases for the decimal point.

  • Deleting Zeros at the end of fields in ALV report

    I want to make an ALV report that include both integer and decimals in same column.
    for example :
    1 - 1234.0000
    2 - 0.0027
    i dont want to see zeros at the end of value. 
    But the type will be decimal and integer values will be shown with zeros at the end.
    For Ex.
    I want to take report like this ;
    1 - 1234
    2 - 0.0027
    How can i make this?
    Thanks.
    Edited by: aydnbk on May 14, 2010 3:22 PM

    Hello aydnbk.
    As far as i know, there is no way to do what you want using standard ALV-Functions. There is a field 'DECIMALS' in structure LVC_S_FCAT, but using this field you could only define ONE setting, that would affect ANY value.
    Furthermore i am asking myself, if this feature is really sensible - when numbers are right-justified, a global setting for the number of decimals makes it much easier to compare the values - at least this is my personal opinion...
    If i had to do this trick, i would simply add some character fields to the output-structure and write the values to the charater-fields to enforce this quite special layout.
    Additionally i would set the fields 'NO_OUT' and 'TECH' for the fields of type 'P', that are holding the values - 'NO_OUT' hides the column and 'TECH' ensures, that the field can not be selected in a user-defined layout.
    Hope this helps.
    Regards, Jörg

  • How do I put photos in an album and remove them from the camera roll?

    I would like to be able to move photos into an album and remove them from the camera roll. Is this possible?
    I take many photos of mundane things that I simply want to remember, such as serial number of products. I would like to save these photos for viewing, but I don't want them to appear in my camera roll, where I have to continuously scroll through many such photos to get to the ones that I want to view there.
    I know that Apple has a "hide" feature, but it doesn't actually do anything. When I press-and-hold on individual photos, the photos stay in the camera roll: they aren't hidden at all. It's not clear what the purpose of this function is at all.

    You don't do this, as the photos are in the camera roll.  That is where they live.  When you make an album you are simply making a list of pointer to your photos in camera roll.
    If you remove them from the camera roll, then they are gone. 
    Photos in albums are not in two places.  They are in only one place, the camera roll.  The album merely contains pointers to those pics, so that you can categorize them however you like.
    You should be importing these pics to your computer.  I find it far easier to organize my photos on my computer, then sync them to the iPhone.

  • HT201250 how do I disable time machine? I want to use my external drive as additional storage. But it mirrors everything I edit. If I remove a document, it removes it from the external drive as well.

    how do I disable time machine? I want to use my external drive as additional storage. But it mirrors everything I edit. If I remove a document, it removes it from the external drive as well.
    I purchased a 1 TB WD passport drive, formatted for Mac. I set it up originally (mistakenly) to backup time machine. I went back and set it to "do not backup"  It still backs up evey document I edit. If I add a document when the drive is disconnected, it automatically adds it to the external drive the next time connect to the passport drive. If I remove a document the same thing happens.
    I need additional storage to free up space on my laptop hard drive. This is not working the way I want it to. Help!

    Do not backup your startup volume to another partition on the same drive. If the drive fails you have nothing. Always backup to another drive or volume on another drive.
    The I/O error usually means there's a problem with the drive. Clone ASAP, then repartition and reformat the main drive. Then restore the clone. Here's the basic process:
    You will have to backup your OS X partition to an external drive, boot from the external drive, use Disk Utility to repartition and reformat your hard drive back to a single volume, then restore your backup to the internal hard drive.
    Get an empty external hard drive and clone your internal drive to the external one.
    Boot from the external hard drive.
    Erase the internal hard drive.
    Restore the external clone to the internal hard drive.
    Clone the internal drive to the external drive
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive and click on the downward pointing arrow button.
    After startup do the following:
    Erase internal hard drive
    Open Disk Utility in your Utilities folder.
    After DU loads select your internal hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.  Do not quit Disk Utility.
    Restore the clone to the internal hard drive
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the internal hard drive. Source means the external startup drive.
    Note that the Source and Destination drives are swapped for this last procedure.

  • Appending zeros in the end

    Hi,
      How can I add some zeros in the end of a field in the decimal places?
    I need to have 6 decimal places, so which ever decimal place is not filled, should be filled with zeros.
    Example:
    If the value is 11.123
       I need to convert it to 12.123000
    If the value is 11.1
       I need to convert it to 11.100000
    Please let me know how can I do this conversion or whether there is any function module available for this.
    Thanks,
    Uma

    Hi,
    move the value field into character field.
    then do like the below.
    data:num(20) type c value '11.1',len type i,len2 type i,v1(10) type c,v2(10) type c.
    split num at '.' into v1 v2.
    len = strlen( v2 ). <b><<holds the value after decimal point,check the length, if it is less than 6 digits,
    then append the reqd. no. of zeroes at the end>></b>
    len2 = 6 - len.
    do len2 times.
    concatenate v2 '0' into v2.
    enddo.
    write:/ v2.
    regards,
    sowjanya

Maybe you are looking for

  • Time Machine isn't backing up to Time Capsule

    My Time Machine isn't backing up to my Time capsule. I am using OS X 10.8.2 which I believe is the latest version. The problem I have is the following error message pops up on my Macbook pro screen : Time Machine couldn't complete the backup to "Alec

  • How to include disconnectors in a set?

    This is an interesting scenario I haven't got a good answer for at the moment and wondered if anyone else had any good ideas? As part of meeting a user deprovisioning requirement, when a set of conditions are met, we need to take action and delete th

  • Survice providers

    Send setting

  • 'Filter' failed message when trying to print

    I have a MacBook Pro 15-inch, mid 2009 running OS 10.9.5 and an Epson Artisan 730 with a wireless connection. Today, when trying to print, I get a message that says, "Stopped - 'Filter' failed." I have never seen this message before.  It was printing

  • Repair Disk Error during Mountain Lion Install 2010 Macbook Pro

    Hello All, Last night like many of you I downloaded Mountain Lion to update to the newest Apple OS. During the install procress I was told my Harddrive was corrupted and needed to be repaired. After running the Verify Disk utility the following error