When it is cast as a thousands separator character

Hello

I am casting a metric like tank, now I need the thousands separator on numbers, possible what we able to do this?

Not nice, but works...

http://hekatonkheires.blogspot.com/2009/04/showing-numbers-as-string-while.html

If you expect larger numbers of billions, just expand the formula.

See you soon,.
C.

Published by: Christian Berg April 1, 2009 12:57

Tags: Business Intelligence

Similar Questions

  • Thousands separator rejected

    I have 3.6 numbers running on a Mac Powerbook.  Is there a way to obtain cells accepted numbers pasted value that contains thousands separator (comma, for example, cut and paste from a financial statement online).  It's silly and also frustrating to have to remove in order to avoid the red triangle format error, when the cell is already set to show it again!

    I can copy and paste (for example $23 500,00) from the following sources and just paste the value in a cell to v3.6.1 numbers with the cell format set to automatic. The original formatting is preserved.

    1. A cell of table Pages v5.6.1
      1. To the currency format, 2 decimals, and thousands separator
    2. A table of v5.1.2.2 of LibreOffice Calc cell
      1. To the currency format, 2 decimals, and thousands separator
    3. Text of document Pages v5.6.1
      1. $23 500,00
    4. Text of the document of LibreOffice Writer v5.1.2.2
      1. $23 500,00 < tab > 43,250.33 < tab > 50,000.00
      2. Values passed in three adjacent cells, but only the first value retains its monetary symbol. Other values retain thousands separator and decimal, but cell format for each value is automatic, no change.
  • ORA-00902 error invalid data type when you use CAST in the PL/SQL Package

    I'm getting ORA - 00902 Datatype not valid error when you use cast in getEmpValues (see code below) method in the package I created.
    I don't know what is the cause of the error. Any help would be appreciated



    CREATE OR REPLACE PACKAGE TEST. TEST_PKG AS

    ARRAY TYPE MyTableType IS NUMBER;
    TYPE REF_CURSOR IS REF CURSOR;

    FUNCTION str2tbl (p_str IN VARCHAR2)
    RETURN myTableType;

    PROCEDURE getContactValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR);

    END TEST_PKG;



    CREATE OR REPLACE PACKAGE BODY TEST. TEST_PKG AS

    FUNCTION str2tbl (p_str IN VARCHAR2)
    RETURN myTableType
    AS
    l_str LONG default p_str | ',';
    l_n NUMBER;
    myTableType l_data: = myTabletype();

    BEGIN
    LOOP

    l_n: = INSTR (l_str, ",");
    WHEN the OUTPUT (nvl(l_n,0) = 0);
    l_data.extend;
    l_data (l_data.count): = ltrim (rtrim (substr(l_str,1,l_n-1)));
    l_str: = substr (l_str, l_n + 1);
    END LOOP;
    L_data return;
    END;

    /*
    p_ParameterString is a string of the form 3, 6, 8, 9'
    */

    PROCEDURE getEmpValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR)
    AS


    BEGIN


    OPEN FOR P_Cursor1

    SELECT *.
    FROM EMP

    WHERE EMP_ID IN (SELECT *)
    OF THE (SELECT CAST (TEST.) (TEST_PKG.str2tbl (p_ParameterString) as myTableType) double)

    );
    END getEmpValues;

    END TEST_PKG;

    ARRAY TYPE MyTableType IS NUMBER;

    This type must be created outside of the package as a SQL type if it must be used in a select statement.

  • Problems with thousands separator

    Hi all. can someone help me. In my form, I create a numeric field. I put in digital format with these settings:

    Decimals = 0

    Style of separator = 1,234.56

    Currency symbol No.

    but for all this field displays the value as "1234.00. to remove the zeros, I add javascript for this field: this.getField('1').value = 0 + this .getField ('1') .value; Now it shows as "1234". but I'm always looking for solutions show the thousands separator. Help, please

    May be a problem with the web service. No problem with Adobe Acrobat.

  • In the world, turning on thousands separator

    I have a very simple question that certainly has a very simple answer, but I can't find anywhere in the docs of Oracle or online any response to this...

    We want our presentation server OBIEE to always display commas as thousands separator, as reported results are difficult to read without them given the large number we treat. Where can I configure this? I found in localedefinitions where I specify the character to use as the "thousandsSeparator', but I don't find nowhere part how say"use it anywhere.

    Thank you 1 million to anyone who can help me here.

    -Jim

    In the properties of the columns, data format, replace the default data format and use the thousand separator...
    At this point you can save it as: 'Wide by default from the system for 'your column' ' or * 'wide by default in the system for this type of data "*...

    Concerning
    Nicolae Ancuta

  • Unexpected ' digital or the error value "when you use CAST COLLECT

    I have a problem with string using CAST aggregation / COLLECT and function to_string described on various sites around the net, including AskTom and http://www.oracle-developer.net/display.php?id=306.

    I get "digital or value error: character string buffer too small", but cannot see what limit I'm exceeding.

    I implemented a simple test case to highlight this problem I pasted below.

    The error does not come from the function to_string itself (otherwise, I expect that we would see "TO_STRING threw an exception" in the error message that is returned).

    Popular thoughts,

    Thank you, Andy

    SQL*Plus: Release 10.1.0.4.2 - Production on Tue Jun 15 09:56:53 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> CREATE TYPE table_of_varchar2 AS TABLE OF VARCHAR2(32000);
      2  /
    
    Type created.
    
    SQL> CREATE OR REPLACE FUNCTION to_string (
      2              nt_in IN   table_of_varchar2
      3      ,       delimiter_in    IN VARCHAR2 DEFAULT ',')
      4      RETURN VARCHAR2
      5      IS
      6          l_idx   PLS_INTEGER;
      7          l_str   VARCHAR2(32767);
      8          l_dlm   VARCHAR2(10);
      9
     10      BEGIN
     11
     12          l_idx := nt_in.FIRST;
     13          WHILE l_idx IS NOT NULL LOOP
     14              l_str := l_str || l_dlm || nt_in(l_idx);
     15              l_dlm := delimiter_in;
     16              l_idx := nt_in.NEXT(l_idx);
     17          END LOOP;
     18
     19          RETURN l_str;
     20      EXCEPTION
     21          WHEN OTHERS THEN
     22              raise_application_error(-20000
     23                                  ,   'TO_STRING raised an exception. '||
     24                                      'The reported error was: '||sqlerrm);
     25     END to_string;
     26  /
    
    Function created.
    
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2001;
      8
      9  EXCEPTION
     10      WHEN OTHERS THEN
     11          raise_application_error(-20001
     12                ,   'The anonymous block raised an exception: '||
     13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
     14  END;
     15  /
    
    PL/SQL procedure successfully completed.
    
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2002;
      8
      9  EXCEPTION
     10      WHEN OTHERS THEN
     11          raise_application_error(-20001
     12                ,   'The anonymous block raised an exception: '||
     13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
     14  END;
     15  /
    DECLARE
    *
    ERROR at line 1:
    ORA-20001: The anonymous block raised an exception: ORA-06502: PL/SQL: numeric
    or value error: character string buffer too small
    ORA-06512: at line 1. ORA-06512: at line 1
    ORA-06512: at line 4
    ORA-06512: at line 11

    Hi André,.

    You have reached the limit of VARCHAR2 in SQL, which is 4000. The concatenated string is much longer. You get an even more informative error message if you deposit 20 to 24 lines in the to_string function.

    Kind regards
    Rob.

  • decimal and the thousand separator for number and currency formats

    Decimal and thousands separators for number and currency formats are not the same, please change your windows settings

    Tab Control Panel / regional and Language Options/Format is used to adjust these. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Shadows of AE CS5 fails when it is cast work?

    System.

    I7 @2. 8 ghz

    9 GB of ddr3 memory

    2 x 1 TB HARD drive

    ATI 5770

    Adobe Master Collection CS5

    I was finish a box of product 3d in AE and as soon as I turned on "shadows" under choice of materials, AE crashes. Then when I open the project, if I try to do something with the layers or timeline, it crashes. The error is meaningless for me, unless the 2nd part is irrelevant.

    first of all I get

    After effects error: incident occurred when rendering the plug-in "AE_OpenGL".

    Then

    after effects error: current Crash. Last logged message was < 8852) < ASL. ResourceUtils.GetLanguageIDFromRegistry > < 0 > cannot get the user 'Language' registry key to: Software\Adobe\AfterEffects\ or by default in "en_US".

    If I delete the layers or disable "shadows" everything works well.

    Any ideas? It's the ONLY time I got AE crash on my system.

    Disable the OpenGL option in the preferences and update your graphics driver.

    Mylenium

  • GREP to change thousands separator in numbers

    I tried to find a simple way to do the following as some of you may have already solved and could lend a hand.

    I'm looking to change the formatting for a large number of a European format: 1 000 000 to format base of 1,000,000. Basically, I just need to remove the spaces and then replace them with commas at the level positions without removing the spaces preceding the numbers themselves.

    Thanks for any help with this! I'm still learning all this GREP.

    To find:

    \d(?!\t)\K\h(?=\d{3})

    Replace with:

    ,

  • separator character

    Which option is best for the treatment of the configuration files created from scripts but read by java.
    Used as a separator of ':' or '='?

    user9032732 wrote:
    I thought that it would be simpler to separate by ':'

    Then do it.

    Why ask for answers if you're going to ignore them.

    and treat them as a properties file.

    If you read the documentation for the properties, you will see that it accepts a as a key/value separator.

  • Correct nls_numeric_characters set

    Hi all


    I have a problem with digital groups separator setting correct - space (no dowry being "preset" in Oracle) must be a thousands separator character.

    SELECT * FROM V$ NLS_PARAMETERS returns


    NLS_LANGUAGE CZECH
    NLS_NUMERIC_CHARACTERS.

    In other applications that I can just treat it by manually changing the NLS_NUMERIC_CHARACTERS just after the user name and the parameter persists. So I tried the same approach in the APEX and created an application process


    RUN IMMEDIATELY "ALTER SESSION SET NLS_NUMERIC_CHARACTERS =" "';"


    which fires on every page load before the header and numbers correctly. So far so good.


    The problem is that, after any change on a report (conventional and interactive as column sorting, filtering... whatever) this setting is forgotten and separator thousand/groups returned to the "point".


    Any ideas how to set constantly NLS_NUMERIC_CHARACTERS would be highly appreciated.

    Thanks in advance,

    Pavel

    OK, I found it

    It was possible to

    => Attributes of globalization-online security-online session of database-online initialization of PL/SQL Code, shared components

    I put exactly the same immediate statement execution and now it works as expected :-).

    Kind regards

    Pavel

  • First of thousands of HP separator

    Hello
    How could we set up the first to have a comma as a thousands separator (a useful feature with the 50G when you work with finances).
    Thank you

    Solved. Thanks for the help.

  • Workflow when you import thousands of products

    I have now completed a few shops with a small number of products. But what is the best workflow when you want to create/import thousands of products? I looked at the excel model that can help, but it sounds pretty hard work and I can't say I know Excel.

    Can anyone give advice?

    Concerning

    Martin

    Hi Martin,

    Worksheets are worksheets, but that's what you'll have to look to import many products in one go. I've trained a lot of people, and some of them could not do it at all at first so they said. They now better then me home some of them!

  • [ADF, JDev12.1.3] Problem of formatting attribute VO MONEY when exports it as an Excel file using apache.poi

    Hallo,

    I have a VO with an attribute based on the field of database of MONEY.

    In the configuration of the VO for the attribute I put:

    • In the "Details" tab: Type = BigDecimal
    • In the "Indications of the UI" tab: Format type and Type like the image below

    Immagine.png

    These settings allow the value of the attribute (in the table, inputText) appears with thousands and decimal separator that according to my language - Italian - are. (point) and, (comma).

    For example. Silver number displayed correctly:

    10.123.000,37

    When I write the value of the attribute in an Excel cell using apache.poi...

    cell.setCellValue (attr.toString ());

    ... I see in the cell...

    10123000.3700

    ... Although I'd like to see what...

    10123000,37 (not thousands separator, the comma as separator decimal and only 2 decimal places)


    You could you kindly help me to get there?

    Thank you

    Federico

    Federico, this isn't really a question JDev or ADF. This can be solved by setting the cell format to the cell, you write the number. Like oyu would in excel

    style.setDataFormat(HSSFDataFormat.getBuiltinFormat("#,##0.00"));

    more info on HSSFDataFormat (javadocexamples.COM JAVA DOC BY EXAMPLES) - API, usage, demonstrations and code examples

    Timo

  • Bug report - validation number in a table (comma as a decimal separator)

    Hello

    When a number is inserted with a comma as a decimal separator (my local context is Czech, but should be the same with Canadians or French https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html and the decimal in numeric keypad key produced by commas), comma is removed rather than get a good error message and the number is inserted in a form as there is no decimal point/comma comma at all. The built-in digital validation can be easily replaced by manual validation of PL/SQL like this

    DECLARE
      v_ret_val BOOLEAN;
      v_tmp_num NUMBER;
    BEGIN
      v_tmp_num := to_number(:num_col);
      RETURN true;
    EXCEPTION
    WHEN OTHERS THEN
      RETURN false;
    END;
    

    but it is just a workaround.

    I created a unit test to https://apex.oracle.com/pls/apex

    workspace: tests

    user: supporter

    PWD: supporter1234

    Request 63101 - tab_form_bug

    I don't want to be too greedy... But please, kindly check the dev team can someone also it I reported it here Re: point Blob problem encoding?

    Thank you very much

    Pavel

    Hi Pavel,

    If you leave the main language of your application, the English value, comma is correctly interpreted as thousands separator. I've updated your application and set the primary language to the Czech, and now he behaves as you would expect (see shared components, attributes of globalization). And certainly, we continue to worry about the tabular forms, they do not go far. Interactive grids provide much additional and new features that are not available with the tabular forms, tabular forms however continue to have a place in the APEX - similar to how there are cases of use for classic reports and interactive reports.

    Kind regards
    Marc

Maybe you are looking for

  • No sound on satellite P100 with Win7

    I've recently updated to Win7 ultimate but now get no noise and tried to update driver without success. I have a message in the bar by saying no audio output device is installed.he list of system in Control Panel it shows tasks "location 0 (internal

  • How to set up Wireless Manager for use with the SIM (NB100-12i)?

    I just bought the NB100-12i which comes with a SIM card slot. The system is WIndows XP SP2.SIM card is recognized (at least it says screen diagnostic wireless managers etc.). But I can't get a connection. After entering my PIN there is nothing happen

  • Problem installing ssd in the new HP H8 - 1437c

    I installed and cloned the C: drive on the new SSD using the data migration software provided with the SSD drive. I use Windows 8. How can I now boot from the SSD?  I tried to set it as the startup disk. What I first need to erase the original HD? or

  • NEX 6 bright screen, black screen, unknown to the lens problem

    This problem is a random problem but tends to happen when I'm on a shoot and made me miss nice photos.  This often happens with the objective of SEL55210 that I'm trying to focus on a topic, the viewfinder light goes white screen, then completely dar

  • Shortcut bar

    Hai I found a thread about the bar shortcuts, but not found response for the it.wish the answer to this thread. I've seen the shortcut bar used in blackberry storm.it seems cool.tried difficult to put in place the shortcut bar, but it seems nice. I w