Division without Fixed Point Arithmetic

Hello,
     I am trying to divide 1 by a decimal, i.e.  1 / 7.75027, in Include RV63A900 of Function Group V61A.  Since the ' Fixed Point Arithmetic' checkbox is not checked, I am unable to get this calculation to work. 
     I have tried different scenarios of using a floating point field to receive the quotient but nothing has worked.
Any suggestions? 
Thank you,
Chris Mowl

I use floating variable some thing like this :
data: v_f TYPE f,
         v_c TYPE char12.
      v_f = ( wa_komp_o-netwr / o_komp-mglme ).
* Due to decimal issues had to use Floating point value
* for calculation of condition base value
      CALL FUNCTION 'FLTP_CHAR_CONVERSION'
        EXPORTING
          decim = 5
          input = v_f
        IMPORTING
          flstr = v_c.
      v_amount = v_c * 10.

Similar Messages

  • Usage of NOT having Fixed Point Arithmetic?

    Hello!
    SAP recommends to always do programs with Fixed Point Arithmetic attribute checked. Please don't explain here what is Fixed Point Arithmetic - I know this and it's is not my question.
    The question is: why do we have it at all? Why aren't all programs simply fixed-point-arithmetic without attribute to activate or deactivate this?
    I suppose that there are situations which require Fixed Point Arithmetic NOT being set, but I can't imagine any. Could anyone offer an explanation?
    Thanks in advance!
    Igor
    Edited by: Igor Barbaric on Mar 21, 2008 9:30 AM
    No replies - I'll try to bring the question to your attention once again:
    Please, does anybody know the purpose of NOT having Fixed Point Arithmetic?

    Please check if this helps u
    This attribute defines, whether for numerical data objects of data type p (packed numbers) is the decimal point is relevant in calculations or assignments or if it is omitted. Normally, this attribute is always switched on and you might ask, why it can be switched off at all. Well, in very ancient times packed numbers had no real decimal point. It was taken into account only for presentation purposes. In order to stay downward compatible, for the introduction of fixed point arithmetic this switch was needed. In fact there are still programs that switch fixed point arithmetic off ¨C for example financial programs that calculate on the basis of cents instead of dollars.
    Thanks Arjun

  • User Exit Fixed Point Arithmetic

    Dear all,
      I have developed some code on the user exit RV61AFZB and tried to change the value on the xkomv-kbetr.  But, i found that the division result is wrong.
    Example:
    DATA: temp like xkomv-kbetr,
               c_test LIKE xkomv-kbetr VALUE '152000.00',
               c_qty like xkomv-kbetr value '3.00'.
       temp  = c_test / c_qty.
    The value of temp became 506.67.  Since, this is a user exit and i can't change program attribute "Fixed Point Arithmetic" .
    Regards,
    Kit

    Hello
    Try this:
    DATA: temp like xkomv-kbetr,
               c_test LIKE xkomv-kbetr VALUE '152000.00',
               c_qty like xkomv-kbetr value '3.00'.
    data: temp1 type i.
       temp  = c_test / c_qty.
       temp1 = temp.

  • Need arithmetic operation result in Fixed point arithmetic disabled prg

    Hi,
    I am writing an enhancement which is in standard SAP program which is not enabled for 'Fixed arithmetic' calculations.
    I need to do some actual arithmetic operation involving packed numbers in my enhancement.
    Say 
    p1 = '2.00'
    p2 = '12.00'.
    result = p1 * p2.
    result coming is 2400.00. This is because Fixed point arithmetic is disabled in standard program.
    I need a result of 24.00 . Is there any solution to this apart from dividing it with 100?
    Regards,
    Dhana

    based on P1 and P2 values you need to divide the value with 100 or 1000 as per the number of decimals on P1 and P2

  • Fixed point division on FPGA doesn't show the fraction part

    Hi,
    I'm trying to normalize a fixed-point complex vector. My problem is in the part of fixed point division. Assuming I am dividing x by y (x/y), then I multiply first x by 2^26 and y by 2^9 then divide both of them using high throughput function then multiply the result by 2^-17 and here the problem appears. The result is zero, and the fraction part doesn't appear. My question is: does the "scale by power of 2" block discards the fraction part and only keeps the integer part, even if the input is a fixed point input with fraction part of 20 bits length? If so then how can I get the result of dividing a number by a bigger one? I mnean how can I display a result < 1? If not, then why isn't the fraction part displayed? The numbers I used as an example are: x=10, y=182.
    The indicator is adjusted to have 64 bit word length and 44 integer length. I also write this data into a memory element and then read it through a FIFO to transfer it to the RT vi. Both of the memory and the FIFO are configured with the same word and integer lengths above. I am using 7965R series FPGA.
    Thanks in advance.

    It's worth noting that I tried this same procedure on RT vi itself and the fraction part was displayed.

  • Inline functions in C, gcc optimization and floating point arithmetic issues

    For several days I really have become a fan of Alchemy. But after intensive testing I have found several issues which I'd like to solve but I can't without any help.
    So...I'm porting an old game console emulator written by me in ANSI C. The code is working on both gcc and VisualStudio without any modification or crosscompile macros. The only platform code is the audio and video output which is out of scope, because I have ported audio and video witin AS3.
    Here are the issues:
    1. Inline functions - Having only a single inline function makes the code working incorrectly (although not crashing) even if any optimization is enabled or not (-O0 or O3). My current workarround is converting the inline functions to macros which achieves the same effect. Any ideas why inline functions break the code?
    2. Compiler optimizations - well, my project consists of many C files one of which is called flash.c and it contains the main and exported functions. I build the project as follows:
    gcc -c flash.c -O0 -o flash.o     //Please note the -O0 option!!!
    gcc -c file1.c -O3 -o file1.o
    gcc -c file2.c -O3 -o file2.o
    ... and so on
    gcc *.o -swc -O0 -o emu.swc   //Please note the -O0 option again!!!
    mxmlc.exe -library-path+=emu.swc --target-player=10.0.0 Emu.as
    or file in $( ls *.o ) //Removes the obj files
        do
            rm $file
        done
    If I define any option different from -O0 in gcc -c flash.c -O0 -o flash.o the program stops working correctly exactly as in the inline funtions code (but still does not crash or prints any errors in debug). flash has 4 static functions to be exported to AS3 and the main function. Do you know why?
    If I define any option different from -O0 in gcc *.o -swc -O0 -o emu.swc  the program stops working correctly exactly as above, but if I specify -O1, -O2 or O3 the SWC file gets smaller up to 2x for O3. Why? Is there a method to optimize all the obj files except flash.o because I suspect a similar issue as when compilling it?
    3. Flating point issues - this is the worst one. My code is mainly based on integer arithmetic but on 1-2 places it requires flating point arithmetic. One of them is the conversion of 16-bit 44.1 Khz sound buffer to a float buffer with same sample rate but with samples in the range from -1.0 to 1.0.
    My code:
    void audio_prepare_as()
        uint32 i;
        for(i=0;i<audioSamples;i+=2)
            audiobuffer[i] = (float)snd.buffer[i]/32768;
            audiobuffer[i+1] = (float)snd.buffer[i+1]/32768;
    My audio playback is working perfectly. But not if using the above conversion and I have inspected the float numbers - all incorrect and invalid. I tried other code with simple floats - same story. As if alchemy refuses to work with floats. What is wrong? I have another lace whre I must resize the framebuffer and there I have a float involved - same crap. Please help me?
    Found the floating point problem: audiobuffer is written to a ByteArray and then used in AS. But C floats are obviously not the same as those in AS3. Now the floating point is resolved.
    The optimization issues remain! I really need to speed up my code.
    Thank you in advice!

    Dear Bernd,
    I am still unable to run the optimizations and turn on the inline functions. None of the inline functions contain any stdli function just pure asignments, reads, simple arithmetic and bitwise operations.
    In fact, the file containing the main function and those functions for export in AS3 did have memset and memcpy. I tried your suggestion and put the code above the functions calling memset and memcpy. It did not work soe I put the code in a header which is included topmost in each C file. The only system header I use is malloc.h and it is included topmost. In other C file I use pow, sin and log10 from math.h but I removed it and made the same thing:
    //shared.h
    #ifndef _SHARED_H_
    #define _SHARED_H_
    #include <malloc.h>
    static void * custom_memmove( void * destination, const void * source, unsigned int num ) {
      void *result; 
      __asm__("%0 memmove(%1, %2, %3)\n" : "=r"(result) : "r"(destination), "r"(source), "r"(num)); 
      return result; 
    static void * custom_memcpy ( void * destination, const void * source, unsigned int num ) { 
      void *result; 
      __asm__("%0 memcpy(%1, %2, %3)\n" : "=r"(result) : "r"(destination), "r"(source), "r"(num)); 
      return result; 
    static void * custom_memset ( void * ptr, int value, unsigned int num ) { 
      void *result; 
      __asm__("%0 memset(%1, %2, %3)\n" : "=r"(result) : "r"(ptr), "r"(value), "r"(num)); 
      return result; 
    static float custom_pow(float x, int y) {
        float result;
      __asm__("%0 pow(%1, %2)\n" : "=r"(result) : "r"(x), "r"(y));
      return result;
    static double custom_sin(double x) {
        double result;
      __asm__("%0 sin(%1)\n" : "=r"(result) : "r"(x));
      return result;
    static double custom_log10(double x) {
        double result;
      __asm__("%0 log10(%1)\n" : "=r"(result) : "r"(x));
      return result;
    #define memmove custom_memmove
    #define memcpy custom_memcpy
    #define memset custom_memset
    #define pow custom_pow
    #define sin custom_sin
    #define log10 custom_log10 
    #include "types.h"
    #include "macros.h"
    #include "m68k.h"
    #include "z80.h"
    #include "genesis.h"
    #include "vdp.h"
    #include "render.h"
    #include "mem68k.h"
    #include "memz80.h"
    #include "membnk.h"
    #include "memvdp.h"
    #include "system.h"
    #include "loadrom.h"
    #include "input.h"
    #include "io.h"
    #include "sound.h"
    #include "fm.h"
    #include "sn76496.h" 
    #endif /* _SHARED_H_ */ 
    It still behave the same way as if nothing was changed (works incorrectly - displays jerk which does not move, whereby the image is supposed to move)
    As I am porting an emulator (Sega Mega Drive) I use manu arrays of function pointers for implementing the opcodes of the CPU's. Could this be an issue?
    I did a workaround for the floating point problem but processing is very slow so I hear only bzzt bzzt but this is for now out of scope. The emulator compiled with gcc runs at 300 fps on a 1.3 GHz machine, whereby my non optimized AVM2 code compiled by alchemy produces 14 fps. The pure rendering is super fast and the problem lies in the computational power of AVM. The frame buffer and the enulation are generated in the C code and only the pixels are copied to AS3, where they are plotted in a BitmapData. On 2.0 GHz Dual core I achieved only 21 fps. Goal is 60 fps to have smooth audio and video. But this is offtopic. After all everything works (slow) without optimization, and I would somehow turn it on. Suggestions?
    Here is the file with the main function:
    #include "shared.h"
    #include "AS3.h"
    #define FRAMEBUFFER_LENGTH    (320*240*4)
    static uint8* framebuffer;
    static uint32  audioSamples;
    AS3_Val sega_rom(void* self, AS3_Val args)
        int size, offset, i;
        uint8 hardware;
        uint8 country;
        uint8 header[0x200];
        uint8 *ptr;
        AS3_Val length;
        AS3_Val ba;
        AS3_ArrayValue(args, "AS3ValType", &ba);
        country = 0;
        offset = 0;
        length = AS3_GetS(ba, "length");
        size = AS3_IntValue(length);
        ptr = (uint8*)malloc(size);
        AS3_SetS(ba, "position", AS3_Int(0));
        AS3_ByteArray_readBytes(ptr, ba, size);
        //FILE* f = fopen("boris_dump.bin", "wb");
        //fwrite(ptr, size, 1, f);
        //fclose(f);
        if((size / 512) & 1)
            size -= 512;
            offset += 512;
            memcpy(header, ptr, 512);
            for(i = 0; i < (size / 0x4000); i += 1)
                deinterleave_block(ptr + offset + (i * 0x4000));
        memset(cart_rom, 0, 0x400000);
        if(size > 0x400000) size = 0x400000;
        memcpy(cart_rom, ptr + offset, size);
        /* Free allocated file data */
        free(ptr);
        hardware = 0;
        for (i = 0x1f0; i < 0x1ff; i++)
            switch (cart_rom[i]) {
         case 'U':
             hardware |= 4;
             break;
         case 'J':
             hardware |= 1;
             break;
         case 'E':
             hardware |= 8;
             break;
        if (cart_rom[0x1f0] >= '1' && cart_rom[0x1f0] <= '9') {
            hardware = cart_rom[0x1f0] - '0';
        } else if (cart_rom[0x1f0] >= 'A' && cart_rom[0x1f0] <= 'F') {
            hardware = cart_rom[0x1f0] - 'A' + 10;
        if (country) hardware=country; //simple autodetect override
        //From PicoDrive
        if (hardware&8)        
            hw=0xc0; vdp_pal=1;
        } // Europe
        else if (hardware&4)    
            hw=0x80; vdp_pal=0;
        } // USA
        else if (hardware&2)    
            hw=0x40; vdp_pal=1;
        } // Japan PAL
        else if (hardware&1)      
            hw=0x00; vdp_pal=0;
        } // Japan NTSC
        else
            hw=0x80; // USA
        if (vdp_pal) {
            vdp_rate = 50;
            lines_per_frame = 312;
        } else {
            vdp_rate = 60;
            lines_per_frame = 262;
        /*SRAM*/   
        if(cart_rom[0x1b1] == 'A' && cart_rom[0x1b0] == 'R')
            save_start = cart_rom[0x1b4] << 24 | cart_rom[0x1b5] << 16 |
                cart_rom[0x1b6] << 8  | cart_rom[0x1b7] << 0;
            save_len = cart_rom[0x1b8] << 24 | cart_rom[0x1b9] << 16 |
                cart_rom[0x1ba] << 8  | cart_rom[0x1bb] << 0;
            // Make sure start is even, end is odd, for alignment
            // A ROM that I came across had the start and end bytes of
            // the save ram the same and wouldn't work.  Fix this as seen
            // fit, I know it could probably use some work. [PKH]
            if(save_start != save_len)
                if(save_start & 1) --save_start;
                if(!(save_len & 1)) ++save_len;
                save_len -= (save_start - 1);
                saveram = (unsigned char*)malloc(save_len);
                // If save RAM does not overlap main ROM, set it active by default since
                // a few games can't manage to properly switch it on/off.
                if(save_start >= (unsigned)size)
                    save_active = 1;
            else
                save_start = save_len = 0;
                saveram = NULL;
        else
            save_start = save_len = 0;
            saveram = NULL;
        return AS3_Int(0);
    AS3_Val sega_init(void* self, AS3_Val args)
        system_init();
        audioSamples = (44100 / vdp_rate)*2;
        framebuffer = (uint8*)malloc(FRAMEBUFFER_LENGTH);
        return AS3_Int(vdp_rate);
    AS3_Val sega_reset(void* self, AS3_Val args)
        system_reset();
        return AS3_Int(0);
    AS3_Val sega_frame(void* self, AS3_Val args)
        uint32 width;
        uint32 height;
        uint32 x, y;
        uint32 di, si, r;
        uint16 p;
        AS3_Val fb_ba;
        AS3_ArrayValue(args, "AS3ValType", &fb_ba);
        system_frame(0);
        AS3_SetS(fb_ba, "position", AS3_Int(0));
        width = (reg[12] & 1) ? 320 : 256;
        height = (reg[1] & 8) ? 240 : 224;
        for(y=0;y<240;y++)
            for(x=0;x<320;x++)
                di = 1280*y + x<<2;
                si = (y << 10) + ((x + bitmap.viewport.x) << 1);
                p = *((uint16*)(bitmap.data + si));
                framebuffer[di + 3] = (uint8)((p & 0x1f) << 3);
                framebuffer[di + 2] = (uint8)(((p >> 5) & 0x1f) << 3);
                framebuffer[di + 1] = (uint8)(((p >> 10) & 0x1f) << 3);
        AS3_ByteArray_writeBytes(fb_ba, framebuffer, FRAMEBUFFER_LENGTH);
        AS3_SetS(fb_ba, "position", AS3_Int(0));
        r = (width << 16) | height;
        return AS3_Int(r);
    AS3_Val sega_audio(void* self, AS3_Val args)
        AS3_Val ab_ba;
        AS3_ArrayValue(args, "AS3ValType", &ab_ba);
        AS3_SetS(ab_ba, "position", AS3_Int(0));
        AS3_ByteArray_writeBytes(ab_ba, snd.buffer, audioSamples*sizeof(int16));
        AS3_SetS(ab_ba, "position", AS3_Int(0));
        return AS3_Int(0);
    int main()
        AS3_Val romMethod = AS3_Function(NULL, sega_rom);
        AS3_Val initMethod = AS3_Function(NULL, sega_init);
        AS3_Val resetMethod = AS3_Function(NULL, sega_reset);
        AS3_Val frameMethod = AS3_Function(NULL, sega_frame);
        AS3_Val audioMethod = AS3_Function(NULL, sega_audio);
        // construct an object that holds references to the functions
        AS3_Val result = AS3_Object("sega_rom: AS3ValType, sega_init: AS3ValType, sega_reset: AS3ValType, sega_frame: AS3ValType, sega_audio: AS3ValType",
            romMethod, initMethod, resetMethod, frameMethod, audioMethod);
        // Release
        AS3_Release(romMethod);
        AS3_Release(initMethod);
        AS3_Release(resetMethod);
        AS3_Release(frameMethod);
        AS3_Release(audioMethod);
        // notify that we initialized -- THIS DOES NOT RETURN!
        AS3_LibInit(result);
        // should never get here!
        return 0;

  • Exponential to fixed point number convert

    Hello All,
    I am getting below result for the double value.
    double d = 7777777.77;
    System.out.println(d); O/P >> 7777777.77
    double d1 = 88888888.88;
    System.out.println(d1); O/P >> 8.888888888E7
    Actually I dont want the value to be in Exponential format. I found that when the decimal is before 7 digits , am getting correct value (without exponential format). But when decimal is after 7 digits then value gets in exponential format.
    If this is the default behaviour which we cant change then how to convert the exponential format number to fixed point number.
    Thanks
    Prasad.

    Don't use the default conversion on double numbers except for debugging. Convert floating point numbers to String format either with String.format, or with a DecimalFormat object. Either gives you proper control over the format.

  • How do I find all the fixed points of a...

    How do I find the number of fixed points in a randomly increasing sequence of integers in O(log n) time?
    (1 1 1 1 5 7) as input will return 1. Because 5 is the fifth element.

    Consider this example instead of the erroneous example given above.
    Input: {-1, 0, 2, 4, 5, 6, 7}
    Output: 4
    I need an algorithm to find the number of fixed points of an increasing sequence in O(log n) time.
    Yes. The sequence is known beforehand.
    I was considering something like a binary search, but it would take more than O(log n) to find the number of fixed points.
    So currently I am thinking of using something like an averaging scheme, but I haven't found any solution yet.

  • ITunes 8 now requires Quicktime 7.5.5... Even without fixing all its bugs.

    iTunes 8 now requires Quicktime 7.5+... What is that? Even without fixing all its bugs working with OS 10.4.11 and lower. Choppy video is still a problem on G5 machines, I have had to reinstall QT 7.4.5 to fix the problem twice now. (Thanks Pacifist) I wont try to install QT 7.5 again until Apple confirms that they have a problem and that it is assured us having a fixed solution, not just it being a little bit better. I know that the answer is get OS 10.5+ installed, but there are still programs and issues that don't work well within that system. If I had an Intel machine I would not worry as much. But why do these bold requirement statements like to rub in that my computer needs more money inserted after the upgrade instead a warning before hand? ,e

    I am just talking about videos that I have shot with correct transfer codecs and imported into Apples' very own Final Cut Pro and just want to see correctly what I could see before smoothly in QT 7.4.5 and earlier. I have long given up QT for viewing anything .avi or .mp4 and use the preferred VLC software. However, QT and FCP are in bed together for obvious reasons. Let's face it... QT does not play everything, nor do I think they try to. No on can survive viewing with QT alone.

  • In need of Fixed-point algorithm

    hi peeps,
    Im in need ( a very urgent need ) of a fix-point algorithm , with explanations if possible. Can anybody point me to the right direction?
    thanks....

    See if this helps you,
    To find a solution to p=g(p)given an initial approximation p0.
    Input: Initial approximation p0; tolerance TOL; maximum number of
         iterations N0.
    Output: Approximate solution p or message of failure.
    Step 1: Set i=1;
    Step 2: While i<=N0 do Steps 3-6.
    Step 3: Set p=g(p0). (Compute p.)
    Step 4: If |p-p0| < TOL then
    OUTPUT (p); (Procedure completed successfully.)
    STOP.
    Step 5: Set i=i+1.
    Step 6: Set p0=p. (Update p0.)
    Step 7: OUTPUT('Method failed after N0 iterations, N0=', N0);
    (procedure completed unsuccessfully.)
    STOP.
    Fixed-Point Iteration Code in C Language
    * Fixed-Point Iteration Code in C Language
    * To find a solution to p = g(p) given an
    * initial approximation p0
    * INPUT: initial approximation; tolerance TOL;
    * maximum number of iterations NO.
    * OUTPUT: approximate solution p or
    * a message that the method fails.
    #include<stdio.h>
    #include<math.h>
    #define true 1
    #define false 0
    main()
    double TOL,P0,P;
    int I,NO,FLAG,OK;
    FILE *OUP[1];
    void INPUT(int *, double *, double *, int *);
    void OUTPUT(FILE **, int *);
    double absval(double);
    double G(double );
    INPUT(&OK, &P0, &TOL, &NO);
    if (OK)
    OUTPUT(OUP, &FLAG);
    /* STEP 1 */
    I = 1; OK = true;
    /* STEP 2 */
    while((I<=NO) && OK)
    /* STEP 3 */
    /* compute P(I) */
    P = G(P0);
    if (FLAG == 2)
    fprintf(*OUP, "%3d %15.8e\n", I, P);
    /* STEP 4 */
    if (absval(P-P0) < TOL)
    /* procedure completed successfully */
    fprintf(*OUP, "\nApproximate solution P = %12.8f\n", P);
    fprintf(*OUP, "Number of iterations = %3d", I);
    fprintf(*OUP, " Tolerance = %14.8e\n",TOL);
    OK = false;
    else
    /* STEP 5 */
    I++;
    /* STEP 6 */
    /* update P0 */
    P0 = P;
    if (OK)
    /* STEP 7 */
    /* procedure completed unsuccessfully */
    fprintf(*OUP, "\nIteration number %3d", NO);
    fprintf(*OUP, " gave approximation %12.8f\n", P);
    fprintf(*OUP, "not within tolerance %14.8e\n",TOL);
    fclose(*OUP);
    /* Change function G for a new problem */
    double G(double X)
    double g;
    g = sqrt(10.0 / (4.0 + X));
    return g;
    void INPUT(int OK, double P0, double TOL, int NO)
    char AA;
    printf("This is the Fixed-Point Method.\n");
    printf("Has the function G been created in the program immediately preceding\n");
    printf("the INPUT function?\n");
    printf("Enter Y or N\n");
    scanf("%c",&AA);
    if ((AA == 'Y') || (AA == 'y'))
    *OK = false;
    printf("Input initial approximation\n");
    scanf("%lf",P0);
    while(!(*OK))
    printf("Input tolerance\n");
    scanf("%lf", TOL);
    if (*TOL <= 0.0)
    printf("Tolerance must be positive\n");
    else
    *OK = true;
    *OK = false;
    while (!(*OK))
    printf("Input maximum number of iterations - no decimal point\n");
    scanf("%d", NO);
    if (*NO <= 0)
    printf("Must be positive integer\n");
    else
    *OK = true;
    else
    printf("The program will end so that the function G can be created\n");
    *OK = false;
    void OUTPUT(FILE **OUP, int *FLAG)
    char NAME[30];
    printf("Select output destination\n");
    printf("1. Screen\n");
    printf("2. Text file\n");
    printf("Enter 1 or 2\n");
    scanf("%d", FLAG);
    if (*FLAG == 2)
    printf("Input the file name in the form - drive:name.ext\n");
    printf("For example: A:OUTPUT.DTA\n");
    scanf("%s", NAME);
    *OUP = fopen(NAME, "w");
    else
    *OUP = stdout;
    printf("Select amount of output\n");
    printf("1. Answer only\n");
    printf("2. All intermeditate approximations\n");
    printf("Enter 1 or 2\n");
    scanf("%d", FLAG);
    fprintf(*OUP, "FIXED-POINT METHOD\n");
    if (*FLAG == 2)
    fprintf(*OUP, " I P\n");
    /* Absolute Value Function */
    double absval(double val)
    if (val >= 0)
    return val;
    else
    return -val;

  • Why is "x2^0" Displayed on Fixed point numbers in hex format

    I have a requirement to display a fixed point value (unsigned 20bit value) in hex format. At present when I set the numeric indicator to display this I get a "x2^0" string attached to the end.
    What is this and is there anyway of turning it off?
    I am trying to give a display that replicated some old style hex mechanical switches, by selecting a fixed size font and limiting the display to only be big enough to display the five hex digits (minimum field length 5 with pad with zeros) I get almost what I want (the "X2^0" is hidden of right hand side)
    However when I delete characters from the number (to say enter a new number) the "X2^0" part then shows. See attached jpg which shows the format string.
    This is by no means a show stopper but just annoying, is there some where to turn this formatting string off?
    Dave.
    Attachments:
    20 bit hex.JPG ‏52 KB

    It is showing how many of those bits are for the decimal places.  It is kind of important information.
    But since you are dealing with an Unsigned Integer (20,20 means there is no fractional part), why not just use a U32.  You can set the display of the indicator for that to be %05x to just display the lower 5 hex characters.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • For GRN, PO exchange rate without fixing exchange rate in PO

    Hi All
    PO date is 01.01.2009, the exchange rate is 46.9 from table
    for GRN on 17.06.2009, the exchange rate is 48.8 from table
    without fixing the exchange rate in PO,  the GRN document should update with PO exchange rate(46.9).
    can any one tell me this , how can i do.
    regards
    M S K

    HI Manjunatha,
    In PO header, Delivery/ Invoice tab, maintain the exchange rate and click the exchange rate fixed check box.
    regards
    uday

  • IHow to force display of trailing zeros for fixed point numbers?

    I have an 8 bit unsigned fixed point number, with 7 integer bits and 1 fractional bit, so the desired delta is 0.5. I want it to always display the fractional bit, even when that bit is 0. In other words, as this number is incremented, I want to see:
    0.0
    0.5
    1.0
    1.5
    etc.
    But instead I'm seeing:
    0
    0.5
    1
    1.5
    etc.
    I set the display format to Floating point, with 1 digit of precision. The "Hide trailing zeros" checkbox is NOT checked. What am I doing wrong?
    I realize I could convert to single precision for display purposes to make this happen, but I'd rather make this work with fixed point.
    Thanks,
    -Ron

    I just rustled up a VI with what I understand your input to be - unsigned 7 bit mantissa and 1 bit exponent input, and have it displaying 2 decimal places.... Is this what you're after or did I miss it?
    - Cheers, Ed
    Attachments:
    zeros.vi ‏7 KB

  • Floating Point arithmetic conversion

    Hi Everyone,
    Can you tell me how to convert a floating point arithmetic field value to a currency field value.
    thanks,
    chan

    Hi,
    I hope simple move statement should work.
    MOVE l_float TO l_curr.
    Make sure that curr field has enough length.
    Thanks,
    Vinod.

  • Recovering dropped table without using pointing time recovery/

    Hi geeks,
    Noob here.I have a question*.I want to recover the dropped table with data with out using pointing time recovery.*
    for Ex:Use hasr dropped the table at 10:00 and realized that he dropped the table at 16:00hrs .So i want to fetch the data(DDL+DML) without using pointing time recovery.
    So please find answers for my question.
    Thank you,
    Rakesh M.

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    Noob here.I have a question*.I want to recover the dropped table with data with out using pointing time recovery.*
    for Ex:Use hasr dropped the table at 10:00 and realized that he dropped the table at 16:00hrs .So i want to fetch the data(DDL+DML) without using pointing time recovery.
    >
    FLASHBACK TABLE myTable TO BEFORE DROP;
    See the examples in the FLASHBACK TABLE section of the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9012.htm
    >
    Retrieving a Dropped Table: Example If you accidentally drop the pm.print_media table and want to retrieve it, then issue the following statement:
    FLASHBACK TABLE print_media TO BEFORE DROP;
    If another print_media table has been created in the pm schema, then use the RENAME TO clause to rename the retrieved table:
    FLASHBACK TABLE print_media TO BEFORE DROP RENAME TO print_media_old;
    If you know that the employees table has been dropped multiple times, and you want to retrieve the oldest version, then query the USER_RECYLEBIN table to determine the system-generated name, and then use that name in the FLASHBACK TABLE statement. (System-generated names in your database will differ from those shown here.)
    SELECT object_name, droptime FROM user_recyclebin
    WHERE original_name = 'PRINT_MEDIA';
    OBJECT_NAME DROPTIME
    RB$$45703$TABLE$0 2003-06-03:15:26:39
    RB$$45704$TABLE$0 2003-06-12:12:27:27
    RB$$45705$TABLE$0 2003-07-08:09:28:01

Maybe you are looking for

  • I want to set up my videos on my iPad mini by artists, not songs. can someone help me?

    i want to set up my videos on my iPad mini by artists, not songs. can someone help me?

  • Issues After Disabling IPv6 on Your NIC on SBS 2008

    If you uncheck the IPv6 protocol from your network interface card on your Windows SBS 2008 server you may see the following issues after a reboot: Microsoft Exchange services fail to start Server hangs at “Applying Computer Settings…” (can eventually

  • MTO Settlement

    Pls help! We use make-to-order scenario with both order and sales order as cost objects. First question - the cost object is determined under cost object controlling by sales order > requirement class >  account assignment category.  If category is E

  • How to use the function:"BAPI_SERVNOT_ADD_DATA"

    Hi all, I need to use BAPI_SERVNOT_ADD_DATA to Added Items, Causes of the service notification. CALL FUNCTION 'BAPI_SERVNOT_ADD_DATA'   EXPORTING     number                  = G_NUMBER   I_BAPI                   = ' ' IMPORTING   NOTIFHEADER      =  

  • DPM on multiple sites with ML6000

    Hi, I must implement a new backup infrastructure. On the central location I will backup the servers with DPM2012 sp1 (Dell PowerEdge R720xd). On a co location I have another Windows 2012 server (PowerEdge R720xd). The central DPM1 server use the serv