How can i retain the trailing zeroes after decimal

how can i retain the trailling zeros after decimal?
values are showing in table like( 4.50,5.00) but i am trying to do some processing with these values then ithe zeroes are truncated like (4.5,5),
how can i get values with zeroes

If the values in the table have trailing zeroes, it's a character type column.
Once you perform operations on them, they're implicitely converted to the number type, hence "losing" trailing zeroes.
To get the trailing zeroes back, you have to convert them back to character data:
TO_CHAR(1.5*3, '90d99')Have fun,
K.

Similar Messages

  • How Can i retain the Shared Variable Values after PC rebooting

    Hi all,
    I am facing a paculiar problem with Shared Variables. I have an application in which shared variables are used for data communication.
    One of the application requirement is to retain the variable values eventhough PC is rebooted or started after crashing. 
    As per the my understanding, the variable values will retain eventhough the PC is rebooted. But here i can observe a paculiar problem like some library variables are retaing the values while some others not. I enabled logging for all the variables.
    I tried many ways. like logging enabled, logging disabled, changing variable names, changing process names etc... But i am not getting a consistent behaviour.
    I hope some you can help me in solving this issue.. "How Can i retain the Shared Variable Values after PC rebooting"
    Thanks and Regards,
    Mir

    Hi Blackperl,
    Thanks for the post and I hope your well. 
    What do you mean by not getting consistent behaviour.. this will all depend on excatly when the crash happens i.e. before the write or after. 
    Surely a better method would be to log the data to a file during the reboot...
    I beleived the value read back
    will be the default value for the shared variable's data type.
    The LabVIEW DSC 8.0 module adds more functionality to the shared variable, including initial values and alarms.
    If you enable an initial value on a shared variable, when the variable
    engine comes back on-line it will default to this value. Setting a bad
    status alarm for the shared variable is also a good way of handling
    this type of event. Additionally, if you are using a LabVIEW Real-Time
    target such as Compact RIO or Compact FieldPoint, it is appropriate to
    consider hosting the shared variable engine on the real-time target.
    These devices have watch-dog capabilities and are typically the
    hardware controlling the critical pieces of an application. Most
    Windows or PC-based targets do not have these fail-safes.
    I guess, if you could explain to me again that would be great. From my point of view, if I have a cRIO and a Windows PC. If the windows PC crashes, the cRIO will still update its shared variables. Then once the PC has started up its own shared variable engine, and the bindings are loaded, it will once again continue to update its copies of the variables.
    Please let me know what you think,
    Kind Regards,
    James.
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • How can I retain my counter button after editing page?

    How can I retain the numberon my counter button after I have change information on my welcome page?

    Since MobileMe will be discontinued on June 12, 2012, and with it the following features:
    Features Unavailable When Publishing to a Non-Mac Server:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ RSS Feed Widget
    you might get ahead of the curve and use a 3rd party counter.  There are many counters that will give you much more than just the number of visitors and can be setup to not count your visits. I use  StatCounter which gives the following info on visitors:
    Click to view full size
    This tutorial describes how to add the counter using an HTML snippet: #13 - Adding a StatCounter as an HTML Snippet. 
    OT

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • How can I retain the original quality of a photo when sending it by email.At the moment if I drag them in to the email from iphoto the image quality reduces.

    When I add photos to an email by dragging them in from iphoto the quality of the photos reduce.
    How can I retain the original quality.
    Philip

    When I add photos to an email by dragging them in from iphoto the quality of the photos reduce.
    Philip, dragging from iPhoto will export previews of the image, not the original high resolution image. To export higher quality versions from iPhoto don't drag, but use "File > Export"
    You can also mail your photo directly from within iPhoto using "Share > Email" and set the "Size" to "Actual Size (Full Quality)"
    Regards
    Léonie

  • How to delete trailing zeros after decimal ?

    Hi,
    i want to delete trailing zeros after decimal.
    Example:
    if it is 22.000 then output will be 22
    if it is 22.010 then output will be 22.01.
    plz let me know hw to do this ?

    DATA:
      lv_decimal TYPE f DECIMALS 3,
      lv_string  TYPE string.
    lv_decimal = '22.010'.
    WRITE lv_decimal TO lv_string.
    SHIFT lv_string RIGHT DELETING TRAILING '0'.
    CONDENSE lv_string NO-GAPS.
    * now no trailing zeros are in the decimal stored in LV_STRING
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 12:10 PM

  • HT4113 how can i unlocked the ipod disabled after too many wrong attempts

    how can i unlocked the ipod disabled after too many wrong attempts

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings         
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    James5wins, you do not have to restore as new. Restoring from backup does NOT restore the screen-lock passcode.

  • How can I have the first letter after a sentence ending period automatically capitalize?  Can't seem to figure it out...thanks!

    How can I have the first letter after a sentence ending period automatically capitalize?  Can't seem to figure it out...thanks!

    You need to fix capitalization in Pages Preferences > Auto-Correction. When you select this option, you can just keep typing in lower case and the first letter of the next sentence will automatically promote to upper case.

  • When reading sent email, the attachments I included in the email to recipient  are not shown.  How can I retain the attachments?

    When send email with attachments and the open the sent mail to read what I sent, the attachemnts I sent are not shown on the mail in my sent folder.  How can I keep the attachments on my mail?

    It will not show anywhere; it is simply your account pic so you know you're using that particular account in Mail (if there is more than one).

  • HT1373 I bought an ipod nano 5th gen and it came with 900 songs on it. How can i retain the music before i authorize this unit to my itunes account? It says it will erase all content once I sync with my imac7. Is there anyway to keep the music??? please h

    I bought a used ipod nano 5th gen and it came with 900 songs on it. How can i transfer, sync, and retain the music before i authorize this unit to my itunes account? It says it will erase all content once I sync with my imac7. Is there anyway to keep the music??? please help!!
    Thanks,
    Aaron

    The music does not belong to you.  You have no legal right to it and there is no way to keep it.
    Sorry

  • How can I change the language of after effect or creative cloud  for a while .. ( I have bought  a template which expressions are in english  )

    hello, I think that this problem has to resolved if it's not yet..  I am on creative cloud in french and all my APPS are in french 
    I  have bought a template for after effect on video hive and its expressions do not work because they are in english..
    what can I do ? ,
    except changing the language and if it's the only solution How can I do that ?  just for a week .. I don't want to keep an english version
    thanks
    JC

    running After Effects in English, even if you’ve installed and activated it in another language

  • How can I reset the xy zero point to a different spot in my PDF? Possibly via a plug-in?

    I would like to reset my zero point to aid in measuring and aligning elements in PDFs. Indesign, Illustrator and Photoshop will let you do this but not Acrobat Pro. Any ideas? I also use Pitstop Pro but can't seem to find anything in there that can help other than the measure tool.

    You can't. The coordinate system defining the position of page elements is a fundamental property of the ISO PDF standard.

  • How can I import the Batch details after a Good Receive PO is posted?

    Hi,
    My situation is, I will receive the exp.date after I have posted the Good Receive PO, can I import the batch details using the DTW after the Good receive PO is posted?
    Please help.
    Paddy

    Hello Paddy
    The Batch completion window is not exposed by the DI and the only way to
    create/modify Batch numbers via DI API is when creating new documents.
    Once the document is added, it cannot be modified therefore no batch can
    be added afterwards.
    Thus It is not possible to add/modify batch numbers to Business One
    using the DI API or DTW once the GRPO has been added already.
    Regards,
    Syn Qin
    SAP Business One Forums Team

  • How can I get the SERIAL NUMBER after an INSERT

    I am working on an application using Jdk1.2 connecting to an Oracle 8i
    Database. The JDBC driver that I am using is Oracle's thin driver.
    In the DB, I have a table that has a primary key as a sequence number.
    Upon inserting a single row into this table, how can I get this serial
    number that is generated by the Database.
    Previously I was using INFORMIX database and welogic's JDBC drivers and this
    is how I get the serial number.
    PreparedStatement ps = ...
    ps.setObject(......);
    ps.executeUpdate();
    int snumber =
    (weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
    Similarly I have tried to use
    (oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
    But this method does not exist in the JDBC thin drivers.
    Is there some other way to get this serial number.
    Thanks,
    Suresh
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by syalaman:
    I am working on an application using Jdk1.2 connecting to an Oracle 8i
    Database. The JDBC driver that I am using is Oracle's thin driver.
    In the DB, I have a table that has a primary key as a sequence number.
    Upon inserting a single row into this table, how can I get this serial
    number that is generated by the Database.
    Previously I was using INFORMIX database and welogic's JDBC drivers and this
    is how I get the serial number.
    PreparedStatement ps = ...
    ps.setObject(......);
    ps.executeUpdate();
    int snumber =
    (weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
    Similarly I have tried to use
    (oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
    But this method does not exist in the JDBC thin drivers.
    Is there some other way to get this serial number.
    Thanks,
    Suresh
    <HR></BLOCKQUOTE>
    ========================================
    ORACLE don't support serial number as Informix, but you can create sequence table
    and every time get the next value from this table.
    null

  • How can I change the default message after System Call Handler transfer error?

    Hi,
    I'm using Unity Connection 9.1 and System Call Handlers to allow to join internal extensions (not reachable from the PSTN).
    I succeeded but I would like to change the default message played when the extension dialed is not known. I tried with Error greetings but nothing changed.
    Thanks for your help.
    Regards,
    Julien

    Just tried this on my 9.1 and 10.0(1) servers and it worked fine.
    I went to the opening greeting call handler, selected the "error" greeting, set the greeting to play my personal greeting (it defaults to the system generated greeting), recording "hey, you dialed the wrong number" and then called in and during the opening greeting I dialed "88" - I heard "hey, you dialed the wrong number" and then it repeated the opening greeting recording as it should.
    the default action after playing your custom greeting in this case is to "restart greeting" - which is why the opening greeting plays again.
    Not sure what you did in your testing with the error greeting - check to make sure you have it set to play your personal greeting instead of the default system greeting - since you can't disable the error greeting there's not a lot of other items I can think of to check.

Maybe you are looking for

  • SAP Library Download.  Is it possible...??/

    Hi all, Is it possible that I can download SAP Library from internet and study LSMW from that....??? Please give me some links if its possible.  I have internet access at work and I dont have internet access at my home orelse I would use help.sap.com

  • How do I get my iPhone to turn back on?

    I was at my friends house, and it was dying, so I used her moms charger. The next day after I left I went out to eat. I assumed it would die while we were eating so I left it in the car. When I came back it was dead. When I got home, I plugged it int

  • No apps showing on my Creative Cloud screen.

    Why do I not have any apps showing on my Creative Cloud screen even though I have both Photoshop and Lightroom.  I did not even realize there should be apps listed on the CC screen until others started showing screenshots of theirs yesterday on FaceB

  • Apple Macbook Pro Retina with display issue Samsung LED

    Once I have plugged the HDMI cable from Macbook Pro to Samsung 24" LED Monitor, the display remains black. Doesn't seemed like the samsung monitor recognised the Apple Macbook Pro at all. I have reset the PRAM and troubleshoot it with Apple and meanw

  • ESTF Requisitions generated from Work Orders (IW31)

    I am generating purchase requisitions from work orders via IW31. I can edit field selection key ESTF to open certain fields for editing in transaction ME52N. However if I generate a service requisition the service line item fields are not available i