Handling Big numbers...

Hi,
I have a table column of type "NUMBER(30)".
I am trying to insert the following number "1410154786773" through a Java program.
To insert the number I am using a PreparedStatement and
I do a
PreparedStatement.setBigDecimal(2,new BigDecimal("1410154786773"))
But on firing a select query the column value shown to me is
"1.410E+12".
Is there any way I can maintain the orignal value of my number. i.e.
On firing a select query I shuld be able to see the same
number as was inserted(In my case 1410154786773).
Plzz let me know....
Thanks,
Chinmay

Where are you issuing the SELECT statement? It would appear that the number's value is remaining consistent and that whatever tool you're using to do the SELECT is formatting it for you.
If you're using SQL*Plus, you just need to format the column, i.e.
scott@jcave > create table big_number (
  2  col1 number(30)
  3  );
Table created.
Elapsed: 00:00:00.08
scott@jcave > insert into big_number values (1410154786773);
1 row created.
Elapsed: 00:00:00.00
scott@jcave > select * from big_number;
      COL1
1.4102E+12
Elapsed: 00:00:00.00
scott@jcave > column col1 format 999999999999999
scott@jcave > select * from big_number;
            COL1
   1410154786773
Elapsed: 00:00:00.00Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC

Similar Messages

  • HT3350 what can you do when you get this warning? "Scouting Book  Collection Index" could not be handled because Numbers cannot open files in the "Numbers Document" format.

    “Scouting Book  Collection Index” could not be handled because Numbers cannot open files in the “Numbers Document” format.

    This file was created in 2002 in MSword but this had been forgotten.
    When I went to open it.... (MSword) was not a program option on my laptop. For some reason, I assumed that either Pages or Numbers wouild open the file. How the file was created was forgotten and had no file Info, but I new that it was a table of valuable information.
    The warning threw me off, because it led me to believe that it was a Numbers file. which Numbers would not open. A paradox.
    I took the file to a laptop in OSXpanther with MSoffice and it opened in MSword. Problem Solved.
    Thank you for your help.

  • How to handle imaginary numbers in Flash

    How to handle imaginary numbers in Flash ? any ideas out
    there please

    I don't know but google does:
    http://board.flashkit.com/board/showthread.php?t=723964
    Or rather someone at the end of the search seems to.
    Go about half way down that thread. Seems like something
    relevant

  • Fail to handle document numbering

    Dear all,
    I had a problem with  SAP 8.82 User Defined Objects  screen. While adding document  Fail to handle document numbering:.error but the documents is added because of this post transaction is not working

    Sir Here added the screen shot for your reference

  • [JPA] Saving big numbers to the database

    Hi,
    I have a JPA problem that I cannot solve. I try to save a large number to the database and JPA performs some strange rounding. For example, saving the number 9999999999999999.00 produces the following number in the database: 10000000000000000.00.
    Actually, I'm not sure if it's JPA or the Oracle JDBC driver, but somebody rounds the number. That's bad!
    Here's how to reproduce the issue:
    1. Database:
    create table big_num
    (id  number(18),
      num number(19,2));
    alter table big_num
      add constraint big_num_pk primary key (id);
    create sequence big_num_seq
      start with 1
      nocache;2. Entity:
    @Entity
    @Table(name="BIG_NUM")
    @SequenceGenerator(name="bigNumSeq", sequenceName="BIG_NUM_SEQ", allocationSize=1)
    public class BigNum {
         @Id
         @Column(name="ID", nullable=false)
         @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="bigNumSeq")
         private Long id;
         @Column(name="NUM")
         private BigDecimal num;
         public Long getId() {
              return id;
         public void setId(Long id) {
              this.id = id;
         public BigDecimal getNum() {
              return num;
         public void setNum(BigDecimal num) {
              this.num = num;
    }3. Code that causes the problem:
         BigNum bn = new BigNum();
         bn.setNum(new BigDecimal("9999999999999999.00"));
         em.getTransaction().begin();
         em.persist(bn);
         em.getTransaction().commit();So, the INSERT statement that iss generated to the database is:
    INSERT INTO BIG_NUM (ID, NUM) VALUES (?, ?)
    bind => [1, 9999999999999999.00]However, the database contains the following:
    SQL> select * from big_num;
                     ID                   NUM
                      1  10000000000000000,00Can somebody tell me if it's possible to save big numbers accurately into the database? If yes, then how?
    Best regards,
    Bisser

    Disabling the bind variables produces the following:
    INSERT INTO BIG_NUM (ID, NUM) VALUES (2, 9999999999999999.00)The database still joyfully contains a rounded number:
    SQL> select * from big_num;
                     ID                   NUM
                      2  10000000000000000,00So, no, it's not an issue with the bind variables. I need to examine the JDBC driver but could you tell me how I can find out what Oracle JDBC driver is used by JPA? Or... is it some other JDBC driver (not Oracle, that is)?
    Best regards,
    Bisser
    P.S. We use the following version of TopLink Essentials:
    TopLink, version: Oracle TopLink Essentials - 2.1 (Build b60-fcs (11/17/2008))
    Edited by: bisser on Jan 28, 2009 9:25 AM

  • Handle big amount of data

    Hello,
    I have to analyse a great amount of data (more than 20MByte), that I read from a logfile. I can't split these data into smaller parts because some of my analysis-methods need all data (regression,....).
    Are there any tricks for LabVIEW (5.0.1), how to handle big amounts of data?
    hans

    You might be able to do as you would like. If analysing process needs
    all amont of data,
    the whole process takes a couple of minutes but no problem. It gives you
    no information
    on the way of process like as hanging, so using "read files", not "read
    from spread
    sheet files", is better to have confirming process including the graphic
    monitor involved
    in the analysing vi that you like to build.
    Thanks in advance,
    Tom
    hans wrote:
    > Hello,
    >
    > I have to analyse a great amount of data (more than 20MByte), that I
    > read from a logfile. I can't split these data into smaller parts
    > because some of my analysis-methods need all data (regression,....).
    >
    > Are there any tricks for LabVIEW (5.0.1), how to handle big amounts of
    > data?
    >
    > hans

  • REG: Handling Unit Numbers

    Hi All,
    Can any one tell me the process of generating the Handling Unit Numbers.
    I am basically an abapper and I need to knoe the whole process of
    1) creating a handling unit
    2) assigning the Material Numbers
    3) Generation of Handling Unit Numbers
    I would also like to know what T Codes would be used from abap point of view.
    Thanks
    Srikanth.P

    First if you want to pack packing instructions should be maintained.
    You can  create handling units and assigbning materials to HU through HU02 transaction.

  • Very Slow BB and Big Numbers

    Hi,
    Ive been taking a look through these forums and have seen plenty of these posts but I have noticed something alarmingly different with my router stats.
    To fill you in due to my distance friom the exchange the best speed that I can get at the moment is 2mb d/l, I understand the reason why and have learnt to live with it. My problem is that for the last week or so i have dropped down to 0.3mb which is very very poor in my opinion. I have contacted Technical Support and got nowhere really, but after reading through the forum i decided to take a look at my router stats to see how they compared and as the title says there are some very big numbers there and i was hoping that one of you helpful fellows might have a better idead than me (or Technical Support) what is going on with my connection.
    Thanks.
    ADSL line status
    Line state
    Connected
    Connection time
    0 days, 9:28:13
    Downstream
    2,336 Kbps
    Upstream
    448 Kbps
    ADSL settings
    VPI/VCI
    0/38
    Type
    PPPoA
    Modulation
    ITU-T G.992.1
    Latency type
    Interleaved
    Noise margin (Down/Up)
    11.5 dB / 14.0 dB
    Line attenuation (Down/Up)
    59.0 dB / 31.5 dB
    Output power (Down/Up)
    16.7 dBm / 12.3 dBm
    Loss of Framing (Local)
    2
    Loss of Signal (Local)
    2
    Loss of Power (Local)
    0
    FEC Errors (Down/Up)
    164264 / 22
    CRC Errors (Down/Up)
    1128 / 2147480000
    HEC Errors (Down/Up)
    nil / 10
    Error Seconds (Local)
    304

    This Test comprises of Best Effort Test: -provides background information.
    Download  Speed
    0 Kbps
    0 Kbps
    500 Kbps
    Max Achievable Speed
     Download speedachieved during the test was - 0 Kbps
     For your connection, the acceptable range of speeds is 50-500 Kbps.
     Additional Information:
     Your DSL Connection Rate :2336 Kbps(DOWN-STREAM), 448 Kbps(UP-STREAM)
     IP Profile for your line is - 350 Kbps
    As i said it has got worse this morning but maybe not as bad as 0kbps but its bad. Also edit is taking an age which is why Ive made 2 new posts.

  • Version-0.apversion could not be handled because Numbers cannot open files of this type

    Hi - I created a file in Numbers a couple of years ago and have been able to update it monthly since its creation.
    This morning I have tried to open the file and am getting the "Version-).apversion" could not be handled because Numbers cannot open files of this type.
    Any ideas for a fix?

    Hi Amelie,
    There are three major versions of Numbers:
    Numbers '08
    Number '09
    Numbers 3
    It is possible that an automatic update by App Store has installed the latest version of Numbers (Numbers 3) on your machine.
    Numbers 3 can not open a Numbers '08 document.
    Which version of Numbers is giving that error message? (In Numbers, Menu > Numbers > About Numbers.)
    Look in your Applications folder for sub-folders such as iWork '08 and iWork '09.
    Please call back with questions.
    Regards,
    Ian.

  • How to handle big java source files in JDEV 10.1.3

    Hi,
    I have some .java files that are like over 10,000 lines long. I know this is crazy but I didn't write it but I have to maintain it. I really dont feel like refactoring all these big source files right now.
    JDeveloper has lots of while-editing features that are probably grinding to a halt on this really big file. My CPU usage shows ~97% whenever I do anything in this file.
    Is there some preferences I could set or something I can disable just while editing this big file.
    Thanks,
    Simon.

    The delays between edits and the IDE stalls seemed
    about the same with this change in place.Ah... that's sad. It seems like there's another (un-configurable) timer mechanism for background parsing used by the structure pane.
    I didn't
    really understand what the numbers were controlling
    so I didn't try any other values. They control the frequency of a timer that is reset each time you press a key in the code editor. After the number of ms specified in these parameters has elapsed after the last keypress, the code in the editor is parsed. There are two settings, one for short files and one for long files (I forget what the threshold is between short and long).
    Maybe it isn't the parser since it still goes to 100%
    CPU (just less often) but I can still move the mouse
    around the file - no stalling. Here's something I'd find useful to investigate this problem: Run jdeveloper with jdev.exe so that you have a console. When the CPU hits 100%, switch to the console and press Ctrl+Break. Copy the stack dump (maybe take a couple of them) and email them to me (brian dot duff at oracle dot com).
    Dropping the structure window is a fairly simple work
    around for me. I can live without the structure
    window for this file although it is actually most
    useful as the file's size, and structure, increases.Yes, I can imagine the structure pane would be quite useful with a mammoth java file like the one you're working with :) Incremental find might be your friend in its absence (Ctrl+E, I think).
    If your considering an ER for the structure window
    (:-) then how about this too:
    "Cursur location within the file should be shown in
    the structure window"
    This already happens for Ant (build.xml) files but
    not for Java files - or at least not for me. The
    problem is that it is easy to get lost in a large
    file and the navigation assistance should be the same
    across all structured file types. Funnily enough, I was talking to one of the developers on the team that builds the infrastructure for the xml based parts of the product (including ant) about these kind of inconsistencies between the XML and Java structure panes just a couple of days ago... :) I'll file a bug for this (rather than an ER), since it's a UI inconsistency.
    Thanks,
    Brian

  • Problem to display big numbers in javascript

    I try to display a big number but the result is not correct.
    My code:
    var n = 1771653332244424314244444;
    console.println(util.printf("Float format: %f", n));
    Result:
    Float format: 1771653332244424300000000.
    The result is round. Why ?
    How to do to display the good number ?
    David

    > The result is round. Why ?
    This is the normal limitation of the representation of floating numbers.
    > How to do to display the good number ?
    You can use a JavaScript library like BigInt.js:
    http://www.leemon.com/crypto/BigInt.html

  • Very big numbers

    Is there a way to handle numbers with quasi-infinite
    precision ?
    For example, in Java, it is possible to use the
    java.math.BigIntegerClass to manipulate such numbers.
    Thanks for your answers ! :)

    Hi Stoker,
    Check out this.
    http://winrichman.blogspot.com/search/label/BIP%20decimal%20number%20rounding%20issue
    this is know issue we have in Publisher Release 5.6.3,
    "Rounding Issue When Adding Decimal Numbers"
    due to some floating point standards followed
    i guess we have a working workaround for this
    1.format-number function
    2.round function
    more info :)
    Rounding floating-point numbers
    * Round to Nearest – rounds to the nearest value; if the number falls midway it is rounded to the nearest value with an even (zero) least significant bit, which occurs 50% of the time (in IEEE 754r this mode is called roundTiesToEven to distinguish it from another round-to-nearest mode)
    * Round toward 0 – directed rounding towards zero
    * Round toward +∞ – directed rounding towards positive infinity
    * Round toward −∞ – directed rounding towards negative infinity.
    first one is the default.

  • How to handle Big FIles in SAP PI Sender file adapter

    Hi all ,
    I have developed a interface , where it is File to Proxy, it is fine when i do with small and normal files
    The structure contain one  Header unbounded  detail and one  Trailer, how to handle when the file size is more than 40 MB
    Thanking you
    Sridhar

    Hi Sridhar Gautham,
    We can set a limit on the request body message length that can be accepted by the HTTP Provider Service on the Java dispatcher. The system controls this limit by inspecting the Content-Length header of the request or monitoring the chunked request body (in case chunked encoding is applied to the message). If the value of the Content-Length header exceeds the maximum request body length, then the HTTP Provider Service will reject the request with a 413 u201CRequest Entity Too Largeu201D error response. You can limit the length of the request body using the tting MaxRequestContentLength property of the HTTP Provider Service running on the Java dispatcher. By default, the maximum permitted value is 131072 KB (or 128MB).You can configure the MaxRequestContentLength property using the Visual Administrator tool. Proceed as follows:
           1.      Go to the Properties tab of the HTTP Provider Service running on the dispatcher.
           2.      Choose MaxRequestContentLength property and enter a value in the Value field. The length is specified in KB.
           3.      Choose Update to add it to the list of properties.
           4.      To apply these changes, choose  (Save Properties).
    The value of the parameter MaxRequestContentLength has to be set to a high value.
    The Visual administartor tool may be accessed using this link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40a08db9-59b6-2c10-5e8f-a4b2a9aaa3d2?quicklink=index&overridelayout=true
    In short  ICM parameters to reset values for this case are
    icm/HTTP/max_request_size_KB
    icm/server_port_ TIMEOUT
    rdisp/max_wprun_time
    zttp/max_memreq_MB
    Please look into this thread to know more about ICM parameters
    http://help.sap.com/saphelp_nw04/helpdata/en/61/f5183a3bef2669e10000000a114084/frameset.htm
    Second solution is that you must split the source file, so that each file is less than 5MB in size, then PI would not cause problem for file size between 1MB-5MB. you can insert header and trailer for individual smaller file obtained after split. All this can be done using scripts or conventional programing provided individual records within file are independent of each other. Finally you have to rename each new file created and put them in PI folder in sequential manner. All this can be achieved by simple shell script/batch file, a C code or java code. If you are going for a C or Java code you need a script to call them from PI communication channel parameter  "run operating system command before message processing".
    regards
    Anupam

  • BIG Numbers formula Questions-looking for clarity and direction

    Besides a general lack of computer knowledge, here is my problem. I'll try to make it clear and easy to read.
    I'm working on a spreadsheet that would organize and keep track of student's choices and payments for a ski retreat. There are 4 checkbox columns for their choices (ticket, ski rental, board rental, tubing). All of these have different costs associated with them, in addition to the basic cost for the retreat.
    Using basic arithmetic and an IF formula in the header column I can calculate each student's Total Cost.
    =Retreat Cost+(IF(Lift Ticket,TRUE)*50+IF(Ski Rentals,TRUE)*30+(IF(Snowboard Rental,TRUE)*50+(IF(Tubing Tickets,TRUE)*35)))-the (*number is the cost)
    This works, although it does return the error that the formula returns a Boolean in place of a number. If there is no easier way to write my formula, how do I turn off that warning-I can't take the glaring reminder of a mistake!
    Students need to turn in a deposit, generally set at $50. Using a Deposit column with checkboxes, I worked out how much a student owes after their deposit. Once I check the box, their Balance shows Total Cost minus the general $50.
    =Total Cost-(IF(Deposit,TRUE)*50)
    Occasionally a student will overpay or underpay their deposit, and right now I'm just going in and manually trying to readjust. I just can't figure out any other option.
    I'd like to keep track of how much money is coming in. Currently this is my formula.
    =SUM(COUNTIF(Students :: Deposit,TRUE)*50+SUMIF(Students :: Paid,TRUE,Students :: Balance))
    My main issue really comes down to the varying deposits. If someone pays $60, I have to check the box, subtract 10 from their balance and add 10 to the student payments. I also wanted the Balance column show "0" once the Paid column was checked, but that was definitely out of my skill set!
    Also, I'm going to try to paste a screen shot. Any help/advice would be greatly appreciated! I'm new to working with numbers (1 week baby!) and honestly, the vast majority of my knowledge has come from reading the message board, so thanks!

    =Retreat Cost+(IF(Lift Ticket,TRUE)*50+IF(Ski Rentals,TRUE)*30+(IF(Snowboard Rental,TRUE)*50+(IF(Tubing Tickets,TRUE)*35)))-the (*number is the cost)
    I would change it to somehting more like this...
    =Retreat Cost+(IF(Lift Ticket,1,0)*50)+(IF(Ski Rentals,1,0)*30)+(IF(Snowboard Rental,1,0)*50)+(IF(Tubing Tickets,1,0)*35))
    (This last part I don't get at all... >-the (*number is the cost))
    The form for an if is If(Test,True,False) meaning if the TEST is true then answer whatever replaces the word true in the description. I think you thought you had to type true. Common mistake if you haven't used them before.
    Look at one of my If's...
    IF(Lift Ticket,1,0)*50
    If the lift ticket box is checked, then answer 1 and multiply by 50, if not answer 0 and multiply by 50, taking that cost to zero.
    Just repeat for each cost and your done...
    Does that help get you on the right track?
    Jason

  • Export cannot handle large numbers

    Exporting to TXT or CSV fails on when columns contain large numbers. I presume it uses 32 bit signed integers. The result is blanks for all fields where the contents are too large. I have tested on both win 2000 and unix with the same results.
    Eddie

    Similar problem occurs with the visualization, as mentioned in:
    acctno is null when displaying data
    Can to be that the problem with the EXPORT has the same cause of the problem with the visualization.

Maybe you are looking for

  • InDesign CC crash on starting trackers

    Installed CC on new computer Mack Book Pro 15 retina 2012 model Photoshop and Illistrator CC work fine but Opening Indesign CC gets to starting trackers and crashes Log Process:         Adobe InDesign CC [379] Path:            /Applications/Adobe InD

  • Itunes could not back up the iPhone because an unknown error occurred

    I am trying to update my Iphone 3GS to the 4.01 update, but I keep getting this error: "Itunes could not back up the iPhone because an unknown error occurred" Then Itunes tells me to reconnect my Iphone and try again, I do so...and I retry the update

  • Flash Radio Buttons

    Okay, I give up, I've searched online and in several forums, pored through the Director documentation, and can't find a single tutorial explaining how exactly to use the Flash component Radio Buttons in Director. And apparently I'm not alone, about a

  • Activation date passed and still no BB!!!!

    I left my previous ISP due to poor service.....I somehow thought BT would be better but so far they have been utter rubbish, I am actually regretting my move from Tiscali/talk talk!! that says a lot as they have got to be the worst ISP's out! My late

  • Frm- 40505 Unable to query (table does not exist)

    Hey, I have a form which has two blocks that are master and detail blocks. On the form, there are 3 fields that allow the query. If there is record found in the master then it works fine. If nothing found, it shows "query causes no records" which is