Decimal to Hexadecimal convertion

Hi, how can I converte decimal(NUMBER) to Hexadecimal in PL/SQL ?
I need to translate the NUMBER: 50545326 to haxadecimal: 030342AE
But my SQL return C43337361B, see below:
SELECT RAWTOHEX( utl_raw.cast_from_number( 50545326 ) )  --> I wish 030342AE value
  FROM DUAL;

Luciana T. Angeli wrote:
One more question, I see that negative numbers can't be converted to Hexadecimal this way.
It is possible to convert negetive decimal numbers to hexadecimal format ?Negative numbers need to be displayed as 2's complement to be shown in hexadecimal, so you would have to specify (in effect) how many bytes you are dealing with.
e.g. if you know your are dealing with 4 byte numbers...
SQL> ed
Wrote file afiedt.buf
  1  with t as (select &num as num from dual)
  2* select to_char(case when num<0 then 65536+num else num end, 'fmXXXX') as hx from t
SQL> /
Enter value for num: 123
old   1: with t as (select &num as num from dual)
new   1: with t as (select 123 as num from dual)
HX
7B
SQL> /
Enter value for num: -1
old   1: with t as (select &num as num from dual)
new   1: with t as (select -1 as num from dual)
HX
FFFF
SQL> /
Enter value for num: 32767
old   1: with t as (select &num as num from dual)
new   1: with t as (select 32767 as num from dual)
HX
7FFF
SQL> /
Enter value for num: -32768
old   1: with t as (select &num as num from dual)
new   1: with t as (select -32768 as num from dual)
HX
8000
SQL>If your numbers are larger you need to increase your format mask and increase the value (65536) appropriately.

Similar Messages

  • Convertion from Decimal to Hexadecimal

    Hi,
    Can you please tell me the way to covert a given decimal number into hexadecimal (for example 4 -> 04, 20 -> 14 etc) and also the vice versa.
    thank you.

    Hi
    Try this function module:
    " CRM_EI_KB_CONV_DEC_TO_HEX "
    This fm converts any decimal to hexadecimal, but not vice-versa.........
    Hope it helps....

  • Conversión decimal a hexadecimal

    ¡Hola!
          Quiero convertir un número decimal en hexadecimal. A medida que varíe un "pointer slide" con valores decimales, un indicador númerico me vaya mostrando dicho numero pero en formato hexadecimal.
    ¿Se puede, alguien sabe cómo hacerlo?
    Adjunto una imagen de la idea para que sea más clara la pregunta.
    Saludos.
    Adjuntos:
    Ejemplo.png ‏7 KB

    Estoy controlando un variador de velocidad por medio de Modbus (empleo una conexión RS485). Dicho variador se programa con formato HEXADECIMAL.
    Para lograr esto estoy utilizando la libreria Modbus, en la cual sus entrada acepta un valor U16 (unsigned 16 bits).
    La pregunta es:
    ¿Cómo hago o existe algun bloque para convertir un número decimal (el cual lo voy variando con una perilla desde el panel frontal) en U16 hexadecimal? Usé un conversor decimal/hexadecimal pero la salida del mismo es un string y esto no me sirve.
    Adjunto una imagen para que sea más claro.
    Adjuntos:
    Esquema.JPG ‏45 KB

  • SAMPLE:C,DECIMAL TO HEXADECIMAL OR REVERSE

    제품 : PRECOMPILERS
    작성날짜 : 2002-05-26
    SAMPLE:C,DECIMAL TO HEXADECIMAL OR REVERSE
    ==========================================
    PURPOSE
    다음의 간단한 두 C Source code들은
    16진수를 10진수로 10진수를 16진수로 바꾸는 방법의 예를 보이고 있습니다.
    EXAMPLE
    prompt$ vi hex2dec.c
    #include <stdio.h>
    int main(void) {
    unsigned int num;
    printf("Hexadecimal number ? ");
    scanf("%x", &num);
    printf("(%d)10\n", num);
    return 0;
    :wq
    prompt$ vi dec2hex.c
    #include <stdio.h>
    int main(void) {
    unsigned int num;
    printf("Decimal number ? ");
    scanf("%d", &num);
    printf("(%X)16\n", num);
    return 0;
    :wq
    prompt$ cc -o hex2dec hex2dec.c
    prompt$ cc -o dec2hex dec2hex.c
    prompt$ ./hex2dec
    Hexadecimal number ? 7FFF
    (32767)10
    prompt$ ./dec2hex
    Decimal number ? 32767
    (7FFF)16
    Reference Document
    ------------------

    Try the SDK forum.

  • Is there a way to convert decimal or hexadecimal string to bcd on labview 8.0 or 7.1??

    i am trying to convert user input data to bcd data. is there a way to do this besides converting each individual data bit to binary?

    How do you want the data represented in memory? Because the BCD code only takes 4 bits there are several options:
    One byte per digit with the unused bits set to zero
    One byte per digit with the unused bits set to ones (hardly anybody does this anymore)
    Two digits stored in each byte
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Decimal value automatically converting into int

    Hi,
    I have a SQL column which is a string and its value is casted to have decimal value. For example 92.57
    In C#, below is the code I have written to retreive the value.
    command.Parameters.Add("@ProcessCompliance", SqlDbType.Decimal).Direction = ParameterDirection.Output;
     ProcessComplaincecount = command.Parameters["@ProcessCompliance"].Value.ToString());
    But value is getting converted as 93 as a int. I want it as 92.57
    Regards, Shreyas R S

    For best results, you should post this question in the SQL development or C# forums. (This is a SharePoint forum.)
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Decimal to hex convert

    Hello,
    sorry but i have a simple question. I want to convert decimal number 0-10000 (like 10000 (decimal) to 27 and 10 (hex) or 1000 (decimal) to  03 and E8 (hex)) to two hex numbers and back. Iám searching for an easy way.
    I tried different ways but i can`t find a solution.
    greetings Schwede
    Message Edited by Schwede on 12-10-2008 07:11 AM
    Solved!
    Go to Solution.

    A very quick an easy method. For numbers go to palette numeric>>data manipulation>>join numbers and split numbers
    Message Edited by t06afre on 12-10-2008 07:59 AM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    sample.vi ‏34 KB

  • How to handle DECIMAL MySQL datatype converted to DOUBLE in OBIEE 10gR3?

    Dear all,
    I have a problem in OBIEE 10g namely I use MySQL database as direct datasource to OBI server and I have a column in a table in MySQL which was designed as DECIMAL datatype (18,0).
    This column is used for measuring a duration, and the values are figured in seconds (without decimals), in form like:
    '1200'
    in MySQL database.
    After import the related MySQL table to OBI repository, the OBIEE converts the column in DECIMAL datatype to DOUBLE PRECISION datatype automatically.
    My object is to achieve values in such form, certainly in duration sense (not in time !):
    hh mm ss
    In order to accomplish it I've tried to change the column format with function ROUND:
    ROUND(db.table.column / *3600*, 2)
    The problem is that it works well only if the values can be divided with no remainder e.g.
    original value: 7200
    new value (ROUND): 2
    In case of my example:
    original value: 1200
    new value (ROUND): 0
    This is wrong, because 1200 seconds are not equal with 0 hour, I wish to see there either _0.33333_ hours OR I prefer much more _0 hour 20 min_
    Have somebody any ideas?
    I've tried to make a view in database and import it as CHAR datatype to database but it is not solution also, because if I filter in BI application or try to make a SUM the BI would drop errors..
    Regards,
    Laszlo

    Hi,
    Refer this links,this is exactly fulfill your requirement.
    OBIEE 11g - Change seconds to DD HH:MM:SS format
    OBIEE Functions
    share the updates..... :)
    mark if helpful/correct....

  • How to Enable MMS without BIS

    How to enable MMS without BIS
    This guide is for you if:
    you have an BlackBBerry OS 7 device on a regular (non-BIS) data plan
      and
      2. you cannot send MMS (multimedia) messages.
    Getting MMS working requires you to split, hex edit, merge and install service books, so read through the instructions and decide whether you’re up to it. I’ve attempted to explain everything as clearly as possible, but it’s a complex process and requires you to follow instructions carefully.
    It's worth asking your carrier if they can just enable MMS for you. If they can and will, you don't need this guide.
    Notes:
    The process described here may also work on earlier devices with OS 4, 5, and 6, but I don’t have those devices to test.
    Many carriers require you to have a data plan in order to send MMS messages. If you don’t have one, this guide may not help you.
    Depending on your cellular plan, sending MMS messages may involve extra charges.
    Preparation: Before You Get Started
    Software
    First, you need some tools to do the work. Download and install these three programs on your computer:
    MagicBerry 3.5 (here)
    A Hex editor (I like HxD, here)
    BlackBerry Desktop (link)
    Service Books
    You will also need a copy of the service books attached to post #1 in this thread over at CrackBerry. Extract the contents of the .zip file to a location of your choice.
    MMS Configuration Information
    Once you have the tools and service books, you need to get the MMS configuration information from your cellular carrier.
    Specifically, you need three settings: MMS Proxy, MMSC, and APN. Search on Google for something like, “MMS settings for [insert your cellular carrier’s name here]” and you should find them. Note that you also need the port number for the MMS Proxy. It should be there on the settings page.
    Note: if the port number for your MMS Proxy is in the 9000s, this process probably won’t work, since your cell carrier may be using the older WAP 1.2 specification. If anyone runs across this, let me know, and I’ll try to help you out.
    A Note on MagicBerry
    MagicBerry is an .ipd file editor. Service books, like the ones responsible for MMS, are .ipd files. The logical conclusion would be that you could edit service books with MagicBerry. But MagicBerry only shows you certain pre-set fields within the .ipd file. As a result, you can't see or edit a lot of the information in the service book. Even worse, if you do edit a service book file with MagicBerry, that unseen information is not saved, so you end up deleting it and rendering the service book useless.
    MagicBerry does have good uses, though: it splits and merges service book files perfectly. In fact, it is the best tool for splitting and merging service books, which is why you downloaded a copy.
    Due to MagicBerry’s limitations, you’re going to edit the files with the hex editor.
    Let’s get started!
    The MMS How-to Guide
    Step 1: Split the .ipd Files
    Start MagicBerry, click File > Open, and open the tmo_servicebooks.ipd file.
    Click Manipulate > Split.
    Tick the box for the MMS Config 2.0 file.
    Press “Split Selected,” enter a file name (and select a directory, so you know where the file is being saved), and press “Save.” Name the file “MMS_Config_20” so that you easily recognize it.
    Note: there are "MMS Config" and "MMS Config 2.0" service books in the tmo_servicebooks.ipd file. Make sure you select the 2.0 version.
    Step 2: Hex Edit the MMS Config 2.0 File
    Now, start your hex editor and open the “MMS_Config_20.ipd” file. It will look like this, without the highlights and bolding. I’ve added those so that it will be easier to provide instructions on editing.
    Hex Editing Basics
    In the HEX editor, the blue numbers don’t matter to you (they’re just column and row labels). Only the black ones are part of the file.
    The bytes (the two-character pairs) on the left side are all numbers, expressed in hexadecimal or “base-16”. The same information is expressed in ANSI characters on the right side.
    The basics of hexadecimal numbering are that you count as follows:
    Base-16 (hexadecimal):  1 2 3 4 5 6 7 8 9  A  B  C   D  E  F  10
    Base-10 (decimal):         1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
    So in the two-character byte pair, 0D = 13, 1F = 31, 50 = 80, etc. If you can figure out those conversions, you’re good. If not, google hexadecimal numbering, and spend some time at a lesson. You need to understand how hex works to do this. There are also decimal to hexadecimal converters online. Use them to check your work, or to do the conversion work for you.
    You can edit the file from either side of the hex editor. As you edit the information on one side, you’ll see it automatically changing on the other as well.
    It’s easier to edit the information in the green, turquoise, and red fields on the right side.
    The information in the grey, yellow, and pink fields must be edited from the left (hex) side, because it’s the hex value that matters, and it shows up as periods or jibberish on the right side. All those “dots” on the right side are not identical when you look over at the left side. They’re actually very different values. The nonsensical letters on the right side are likewise meaningful values on the left side.
    It’s not a bad idea to just spend some time playing around in the hex editor before you move on. When you’re done, close the file without saving it, and the changes you make while experimenting won’t be made permanent.
    Editing the File
    The green blocks: enter your MMS proxy in each one, with the port number following the colon. Add to or delete bytes from the highlighted field if necessary, but whatever you do, do not write over or delete bytes outside the highlighted field! Those bytes contain necessary information, and if they are not there, the service book will not work. The same rule holds true for all of the other edits. You must stay within the highlighted fields. To delete bytes, just press delete. To insert bytes, position the cursor, and go to Edit > Insert Bytes on the menu bar, and choose the number of bytes to insert. If you’re using HxD hex editor, ctrl-z will undo a mistake. It also makes your changes in red, which makes them a little easier to follow. As with all programming, the work has to be perfect. There can be no mistakes. Check everything you do carefully.
    The turquoise block: enter the MMSC address here.
    The red block: enter your APN here.
    The yellow blocks: total number of bytes in the highlighted green, turquoise, or red range that follows. Adjust it when you’ve finished editing. The number must be expressed in HEX of course. Use a decimal to hexadecimal converter online if you prefer that.
    The pink blocks: the total number of bytes in the bolded range that follow (again, in hex). Adjust it when you’re finished editing the field.
    The grey block: a count of the total number of bytes that follow it. In the original file, the value is 30 01 00 00, which breaks down as: 30(hex)=48 01(hex)=256. The total (48+256) is 304. If the number of bytes following the grey block was less than 256, there would be no 01 in the second place. For example, if there were 226 bytes following the block, the grey block would look like this: E2 00 00 00. When you are finished editing the entire file, go back and adjust the number in the grey block accordingly.
    Once you’re done, save the file.
    Step 3: Merge the MMS Config 2.0 and Wap Push Config Service Books
    Open the “MMS_Config_20.ipd” file in MagicBerry
    Once you’ve opened the file, click Manipulate > Merge.
    Tick the box for the MMS Config 2.0 file.
    On the right side of the “Merge” window, where it says, “Choose second IPD file,” press the button with the three dots.
    Choose the tmo_servicebooks.ipd file.
    Tick only the box for the “Wap Push Config” service book.
    Press “Merge Selected,” enter a file name (and select the directory if necessary), and press “Save.”
    Close MagicBerry
    Step 4: Backup Your Phone
    This is mandatory. You’ll need the backup file for step 6.
    You need to have BlackBerry Desktop installed on your computer. If you haven’t done that yet, do it.
    Connect your BlackBerry device to your computer with a USB cable. If BlackBerry Desktop does not start automatically, start it.
    Do a backup. Just hit “Back up now” and follow the prompts. Do a full backup. Once you’re done, go to step 5.
    Step 5: Merge the combined MMS Config 2.0/Wap Push Config service book file with your existing service books
    Open MagicBerry
    Press File > Open and at the bottom of the Open dialogue window beside the File name box, change “IPD Files (.ipd)” to “BBB Files (.bbb)”. Navigate to the folder where you stored your backup, and open it. It might take a while to open.
    Click Manipulate > Merge.
    Go down the list on the left hand side and tick the checkboxes for the service book entries (they will be way down). If there are service books listed for MMS Config or Wap Push Config, uncheck those boxes.
    On the right side of the “Merge” window, where it says, “Choose second IPD file,” press the button with the three dots. Choose your merged MMS Config 2.0/Wap Push Config file.
    Press “Merge Selected,” enter a file name (and select the directory if necessary), and press “Save.”
    Optional: You can merge the newly created file again with any other service books you may need – such as the Anworm service books for the browser mentioned in my thread on CrackBerry. Just follow the process used in step 3.
    Step 6: Install the Service Books to your phone:
    Connect your BlackBerry to your computer with a USB cable if it isn’t still connected.
    On your BlackBerry, go to Options > Device > Advanced System Settings > Service Book
    Hold down the “Alt” key and press S B E B. You should see a message that says, “Legacy SB Restore Enabled.” Press Okay.
    On your computer, open BlackBerry Desktop.
    Go to Device > Restore.
    Press “Change” and navigate to the folder with the merged .ipd file you created. Press “OK.” You should now see the file listed in the Restore window.
    Click on the merged .ipd file you created to select it.
    Under the heading “Select Data to Restore,” select “Select Device Data and Settings” and then tick the box for “Service Book.” This step is really important. Make sure it's done right. If you screw it up you could end up wiping a lot of settings and data.
    Press “Restore” and answer “Yes” to the confirmation dialogue.
    Close the BlackBerry Desktop software, disconnect your device, and do a battery pull to reboot.
    Voila! If everything went well, you should have MMS capabilities. Test your ability to send and receive multimedia by sending yourself a picture message. You should receive the message within about 10 seconds.
    If it doesn’t work, go back and make sure EVERYTHING in the file is done perfectly. If you find a problem, fix it, merge the files again, and reinstall the service books.
    Solved!
    Go to Solution.

    Why not just ask carrier to enable MMS? I know T-Mobile can and will do it, even if there is no data plan at all on the line. We did it for my daughter and I know T-Mobile has done it for others. I assume other carriers do the same, but don't know....Which is why I ask.
    - Ira

  • Nesting CONVERT(DECIMAL)

    SUM(CONVERT(DECIMAL(12,2),CONVERT(DECIMAL(12,2),DATEDIFF(mi,StartTime,FinishTime))/60) - ISNULL(Breaks,0))
    From the query above, I had to nest Convert decimal twice before getting the result. What is the logic behind this sort of query? I got the result I wanted but I want to equally know the reason for having decimals repeated the way I just did.
    Thank you.
    Zionlite

    Hi Yookos/Zionlite, It looks like Himanshu explained as shown below, the third one. Am not getting what you are trying..Please eloborate.
    >>>SELECT
    CONVERT(DECIMAL(12,2),DATEDIFF(mi,GETDATE()-3,GETDATE()))
    -- 4320.00
    SELECT
    CONVERT(DECIMAL(12,2),DATEDIFF(mi,GETDATE()-3,GETDATE()))
    /60
    --72.000000
    SELECT
    CONVERT(DECIMAL(12,2),CONVERT(DECIMAL(12,2),DATEDIFF(mi,GETDATE()-3,GETDATE()))
    /60)
    --72.00

  • How to convert bitwise operator for oracle

    hi all,
    Please help me to get convertion for (IP/16777216)&0xFF like
    If I have query select (IP/16777216)&0xFF I need IP address like 10 is there any way to do this
    Thanks in Advance
    Prashant

    Hi..
    Well not very clear with the question.
    If you want the ip you can use
    select utl_inaddr.get_host_address(Host_Name) from V$INSTANCE;
    If you want some conversion from decimal to hexadecimal you can refer to
    [http://arjudba.blogspot.com/2008/10/convert-decimal-to-hexadecimal-on.html]
    [http://www.jlcomp.demon.co.uk/faq/base_convert.html]
    Anand

  • How do i convert a portion of day into a time?

    How do i convert a portion of day into a time, without dividing and modding the number myself?
    For example, i calculated solar noon UTC to be .733409047. Adding that to the date gives the correct answer:
    SQL> SELECT TO_DATE('1/1/2012', 'DD/MM/YYYY') + .733409047 FROM Dual;
    TO_DATE('1/1/2012',
    01/01/2012 17:36:07
    A few questions, to actually understand this.
    Is .733409047 implicitly converted? If so, to what datatype?
    If i want HH:MM:SS does it need to be converted to a date, and then TO_CHAR? Or can the decimal be directly converted?
    I'm currently trying to understand INTERVAL.
    SQL> select interval '.5' day from dual;
    select interval '.5' day from dual
    ERROR at line 1:
    ORA-01867: the interval is invalid
    So, i'm obviously misunderstanding it. Can it be used here?

    Hi,
    Brian Tkatch wrote:
    How do i convert a portion of day into a time, without dividing and modding the number myself?
    For example, i calculated solar noon UTC to be .733409047. Adding that to the date gives the correct answer:
    SQL> SELECT TO_DATE('1/1/2012', 'DD/MM/YYYY') + .733409047 FROM Dual;
    TO_DATE('1/1/2012',
    01/01/2012 17:36:07
    A few questions, to actually understand this.
    Is .733409047 implicitly converted? If so, to what datatype?No, there is no conversion going on here, just Date Arithmetic .
    In Oracle, if d is a DATE and n is a NUMBER (not necessarily an integer, and not necessarily positive), d+n is the DATE that is n days later than d.
    If i want HH:MM:SS does it need to be converted to a date, and then TO_CHAR? Or can the decimal be directly converted?Sorry, I don't understand. Are you saying that you want to do something like date arithmetic, but instead of using a number like .733409047 (meaning about .73 of a day), you want to pass a string like '17:36:07' (meaning 17 hours, 36 minutes and 7 seconds)? If so, INTERVAL DAY TO SECOND is probably your best bet. (It looks like you're already thinking along these lines.)
    I'm currently trying to understand INTERVAL.
    SQL> select interval '.5' day from dual;
    select interval '.5' day from dual
    ERROR at line 1:
    ORA-01867: the interval is invalid
    So, i'm obviously misunderstanding it. Can it be used here?You can only use integers like that. If you want to use any number, then use date arithmetic to add to (or subtract from) a DATE, or use NUMTIDSINTERVAL to produce an INTERVAL DAY TO SECOND:
    SELECT     NUMTODSINTERVAL (.733409047, 'DAY')     AS intrvl
    FROM     dual;Output:
    INTRVL
    +000000000 17:36:06.541660800 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements), maybe about 5 rows, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • Converting time

    Hi I was wondering if anyone could help me out with an application I am working on. I am trying to retrieve data from a text file and show it on a second form. i am having issues converting strings to classes. when i run it i get an exception to parse the
    string totake the date before putting each variable into the datetime object.
    Here is my code so far:
      private void CreateEventList()
             CommnunityEvents = new List<Community_Event>();
             // call the extract Data method.
             ExtractData();
             if (CommnunityEvents.Count > 0)
                //if there are no events for the date selected display the following
                eventComboBox.Text = " -Events- ";
                descriptionTextBox.Text = "Pick an event";
             else
                //if there are no events for the date selected display the following
                eventComboBox.Text = " No Events ";
                descriptionTextBox.Text = "No events today.";
          // Create Method ExtractData
          private void ExtractData()
             CommnunityEvents.Clear();
             // load the data from the file
             List<Community_Event> tempList = new List<Community_Event>();
             //string[] fileLines = File.ReadLines(@"C:\Users\IAN\Documents\calendar.txt");
             foreach(string line in File.ReadAllLines("Calendar.txt"))
                string[] items = line.Split(",".ToCharArray());
                   Community_Event newEvent = new Community_Event();
                   newEvent.Day = Convert.ToInt32(items[0]);//Converting the Integer to a string.
                   newEvent.Time = items[1];
                   newEvent.Price = Convert.ToInt32(items[2]);//Converting the decimal to a string.
                   newEvent.Event = items[3];
                   newEvent.Description = items[4];
             CommnunityEvents = (from ev in tempList
                                          where ev.Day == 1
                                          select ev).ToList();

    The Convert.ToInt32 methods converts the string to an int. You should use the Convert.ToDecimal to convert it to a decimal:
    newEvent.Price = Convert.ToDecimal(items[2]);//Converting the decimal to a string.
    Of course items[2] must contain a value that can actually be converted to a string for this to work. Alsom the Price property of the newEvent should be a decimal. Otherwise you also have the Convert.ToDouble method for example.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • Divide Result in decimal or float

    Hi,
    Here i am doing division calculation for two int values. 
    payroll   occbeddays   result  
    2168        2969           0
    But i want the result as 0.73
    How can i got this?
    @temp_STATSCAL AVGPAYROLL is money datatype.
    INSERT INTO @temp_STATSCAL (FACILITY,AVGPAYROLL)
    SELECT r.FACILITY,
    CASE WHEN s.OCCBEDDAYS >0 THEN
    r.PAYROLL/s.OCCBEDDAYS
    ELSE
    0
    END
    FROM @temp_STATS s
    CROSS JOIN @temp_REVENUE r WHERE r.FACILITY=s.FACILITY

    You can use this code also
    Select
    Convert(decimal(10,2),(Convert(decimal,2168)/
    Convert(decimal,2969)))
    [Result]

  • Is there any function module todelete decimal values

    hi all
    is there any function module todelete decimal values not converting charcter or numeric values i want to change my value with decimals to with out decimals.
    please give me suggetion.
    Thanks
    Ramana reddy

    hi dear
    you can use type P or I
    Data W_VAL type P.
    Data W_VAL type I.
    or assigned dictionary field like Mara-MATNR as getting your value
    Rewards if Useful.

Maybe you are looking for