Convert legacy microsoft MBF double to java double

Lo,
i'm trying to read from old btrieve database some records, with double saved MBF format from microsoft.
It seems it's mantissa, exponent and sign is completly different from IEEE double format, and dunno how to fix the problem, mostly don't know how to find exact structure of java double (how bits are used to design mantissa, sign, exponent).
any idea?

Already checked, it doesnt work.
(It doenst take much to translate it to java from c.)
It seems there's something strange about the mantissa, probably, or there is a mask over or the bytes and reversed, or only the gods, know what :o/

Similar Messages

  • Convert/Cast Single to double inaccurate.

    Whilst I have read some background on floating opint numbers not being able to accurately store numbers such as 0.1, I am not clear why converting from single to double is so inaccurate.
    Converting a single 0.1 to a double 0.1 yeilds
    0.10000000149011600
    But 0.1 can be represented in a double more accurately, even if not perfectly as
    0.10000000000000000
    This stems from the single representation of 0.1 actually equating to 0.10000000149011600 in binary.
    However, we know that the single has a particular level of precision.
    I would like a conersion function that converts single 0.10000000 to double 0.1000000000000000.
    I can appreciate that the standard conversion functions would need to still exist as real numbers for engineering would suffer less overall inaccuracies with the existing rounding functions.
    One other question:
    Can the convertsion be affected by the OS/framework/hardware or will it be consistent on different machines?  Are there any settings that can change the conversion behaviour?

    There is no reason that we should explicitly convert a single precision number to a double precision number using some function as a simple assignment would do the same. Please review the following code:
    float x = 10.5367f;
    double a = Convert.ToDouble(x);
    double b = (double)x;
    double c = x; //same as conversion or casting
    In the previous example, when x is declared as float, the memory space that is allocated is sufficient to hold the value of x as float along with precision. Now when we assign the value to some double variable (by conversion/casting/direct assignment), all
    what happens is,
    1. the space for the double variable is allocated
    2. the value is copied from single the single variable to double variable.
    Now obviously, the value of the single variable does not span as much memory space as the double variable. So when copied to double the remaining memory space of the double variable is still filled up with garbage data. The actual value of the single variable
    is still preserved upto the range of single precision.
    So frankly speaking, there is no such straightforward way that can be used to fill the garbage digits with 0s.
    I personally recommend that you use "decimal" instead of "double" if any such conversion is required.
    Thanks.

  • How to convert scientifice notation to double?

    Hi, is there any way to convert "computerized scientific notation" double number to simple double number.
    In my program I am reading a number from a XML file.
    Let says the value is 8995656566. I convert this value to a double using
    Double("8995656566").doubleValue().
    This returns 8.995656566E9.
    Is there any way to get the doulbe value without 'E'?
    I need a double value not a String so DecimalFormat won't help here.
    Thanks

    The double or Double value doesn't contain the E. Only the String representation does. So, you should have the correct value (unless you are trying to force too many significant digits, but that isn't true for your example.

  • How do I convert a String to double~?

    The contents of a file named data.txt are shown below:
    1.2402 .7930 .3254 -.0994 -.2930 -.4233 -.4539 -.1423
    -.0007 -.3118 -.6208 -.9524 -1.3694 -1.3870 -.9214 -.3621
    .1633 .9746 2.0815 2.5352 1.8879 1.0037 .3276 -.2085
    I want to read these data from data.txt.
    Below are the code I use to read file:
    //read file
    BufferedReader br = new BufferedReader(objFileReader);
    //lstrLine contains one line data,
    String strLine = br.readLine();
    Question:How can I convert String strLine to double [ ] dbLine ?
    For example,convert String strLine=" 1.2402 .7930 .3254 -.0994 -.2930 -.4233 -.4539 -.1423" to dbLine[0]=1.2402,dbLine[1]=.7930,dbLine[2]=.3254,dbLine[3]=-.0994,dbLine[4]=-.2930,dbLine[5]=-.4233,dbLine[6]=-.4539,dbLine[7]=-.1423

    String.split(), DecimalFormat

  • How to convert an object to double

    how can i convert an Object into double?
    do i need to import anything?

    I think you mean, such a thing:
    Object obj;
    obj=new Double(3.14159);
    double value=obj.doubleValue();//possible
    obj=new Object();
    value=obj; //not possible!!!!!!!!!!!!!!
    In this case, the static type of obj is Object but the dynamic type is Double. Double is the "wrapper"-class for the variable-type double. For all variable-types is a wrapper-class existing. This is only for one reason that you can store "Values" within an Object Instance.
    Hope this helps
    chris

  • Why can I not Convert a Microsoft Office Document to a PDF using the Context Menu?

    Why can I not Convert a Microsoft Office 2013 Document to a PDF using the options found in the Context Menu? (Ex: Convert to PDF, Combine Supported Files into PDF?)
    I updated to Acrobat XI PRO recently, but now i'm unable to combine or convert microsoft word docs to PDF.
    In Adobe Acrobat X I had this feature below, and it would combine Microsoft Office Documents all into a single PDF. Now I no longer have this issue in Adobe Acrobat XI Pro. It seems like it was program named Adobe Elements that was running the conversion.

    Ajlan. That page is showing as not available. Would the fix apply to Adobe Acrobat X and XI?
    Zach Moses
    Direct Phone and Fax (615) 577-5814 | [email protected]
    W Squared, Inc.
    5500 Maryland Way | Suite 200 | Brentwood, TN 37027 | www.wsquared.com<http://www.wsquared.com>
    This email and any attachments may be confidential and are solely for the use of the individual to whom they were intended. If you are not the intended recipient of this email, you must take no action based upon it, nor must you copy it or show it to anyone. Please immediately reply to the sender if you suspect you were not the intended recipient. All contents of this email are provided "as-is" without warranty of any kind and are subject to change without notice. W Squared assumes no risk from the recipient's use of this email. W Squared is not a certified tax firm or law firm and recipient should not rely on any communication from W Squared or its employees as having such authority.

  • I am trying to convert a Microsoft Publisher Document to PDF but it fails every time although the reason is not clear. Any ideas?

    I am trying to convert a Microsoft Publisher Document to PDF but it fails every time although the reason is not clear. Anyone else had problems like this and how do I solve it? Thanks. Ray

    Hi raythree,
    I'm sorry that your PDF conversion is working. Can you please tell me if you're getting a specific error message? Knowing that can help pinpoint the cause of the conversion failure. However, here are a couple of things that you could try:
    Clear your browser cache (steps to do this vary by browser).
    If you're using a work computer, check with your IT team to confirm if you have firewall/proxy settings that restrict the ability to upload files to the Internet.
    Try another web browser.  A list of supported browsers for accessing the ExportPDF service is available here: http://www.adobe.com/acom/systemreqs/.
    Also, note that there is a 100MB file size limit, so if your publisher file is larger than that, it won't upload to ExportPDF.
    I hope this helps. But let us know if you need further assistance.
    Best,
    Sara

  • How do I maintain my hyperlinks when converting a Microsoft Word Document to a PDF file?

    How do I maintain my hyperlinks when converting a Microsoft Word document to a PDF file?

    Hi Marbarrose,
    When you make word file including hyperlinks then convert in pdf.
    It will automatically maintain hyperlinks.
    Regards,
    Florence

  • I do not get a readable or editable PDF file that has been converted to Microsoft Word.

    In the past I have been able to convert PDF files to MicroSoft Word, and Edit and Save the Documents. Now, the converted files are unreadable and uneditable. How do I correct this problem?

    Thanks for the email, Stacy!
    I don't have an old PDF file that I converted to MicroSoft Word, however the new file that I am trying to convert and edit is the same kind of file that I've converted and edited before; An Invoice from the same Company. Is there a possibility that a download, MicroSoft Compatibility Pack for the 2007 Office System, onto MicroSoft Windows XP Home Edition Version 2002 computer might be causing the problem? Should I download to (.doc) or (.docx)? Any help will be greatly appreciated!
    Thanks,
    Joseph Renn Little
    Date: Fri, 21 Mar 2014 08:48:32 -0700
    From: [email protected]
    To: [email protected]
    Subject: I do not get a readable or editable PDF file that has been converted to Microsoft Word.
        Re: I do not get a readable or editable PDF file that has been converted to Microsoft Word.
        created by StacySison in Adobe ExportPDF - View the full discussion
    Hi Joseph,
    I'd like to assist!
    Have you tried converting one of your old PDF's that have worked in the past to see if it still works?
    Are these files scanned to PDF files?
    You may want to try utilizing the OCR solution.
    Let me know if that works.
    Looking forward to hearing back from you!
    Kind regards, Stacy
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6231210#6231210
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6231210#6231210
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6231210#6231210. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe ExportPDF at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • After scanning my document and converting to Microsoft Word the size of characters are different

    After scanning my document and converting to Microsoft Word the size of characters are different and things like puntuation are distorted. How do I get the uniformity like the original?

    Of course what lands in the Word file will differ from the viewed picture/image of text created by the scanner.
    (The output of all scanners is always an image file. For an image of textual content the best output file format is TIFF.)
    So you scan the hardcopy of text.
    The scanner output image (picture) is brought into PDF.
    At this point the only PDF page content that you can export to Word is the image (nope, no "text" just the image).
    Consequently you use Acrobat's OCR feature to do OCR of the image of text.
    With a decent paper source, proper resolution and a black and white image you'll get acceptable accuracy of recognition of the pictures of the characters.
    (the Optical Character Recognition)
    Acrobat's Searchable Image and Searchable Image (Exact) provides output that used text rendering mode 3 (no fill, no stroke for the glyphs).
    So, invsible / hidden text.
    The third OCR method is ClearScan.
    You could play with each of the three to see what goes into a Word file.
    Might try export to RTF, DOC and DOCX as well.
    Anyway -- What is exported is the OCR output; Not the image of text.
    And, of course, the image of the text is not the imprint on the paper that was scanned.
    Each step to the way you have some deviation.
    Once you have the exported PDF content in a Word file you can use Word to cleanup as desired / needed.
    OR
    Prop up the hardcopy and transcribe to a Word file.
    Be well...

  • Converting Oracle XML Query Result in Java String by using XSU

    Hi,
    I have a problem by converting Oracle XML Query Result in Java
    String by using XSU. I use XSU for Java.
    For example:
    String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
    preise ps where match='"+args[0]+"'");
    String datum1=datum;
    I become the following error:
    Prototyp.java:47: Incompatible type for declaration. Can't
    convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
    Can somebody tell me a method() for converting to solve my
    problem??????
    Thanks

    Hmmm.. Pretty basic just look at the example:
    OracleXMLQuery qry = new OracleXMLQuery(conn,"Select max(ps.datum) from preise ps where match='"+args[0]+"'");
    String xmlString = qry.getXMLString();
    Hi,
    I have a problem by converting Oracle XML Query Result in Java
    String by using XSU. I use XSU for Java.
    For example:
    String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
    preise ps where match='"+args[0]+"'");
    String datum1=datum;
    I become the following error:
    Prototyp.java:47: Incompatible type for declaration. Can't
    convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
    Can somebody tell me a method() for converting to solve my
    problem??????
    Thanks

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

  • Reading Microsoft Excel spreadsheets in Java

    Is it possible to read a Microsoft Excel spreadsheet in Java? If so, how does one do it?

    There exist the JDBC-ODBC bridge driver which enables interaction with Excel files using JDBC, but you're restricted to only one platform (Microsoft Windows), only one (free) driver which is full of bugs and inefficiency (the JDBC-ODBC bridge driver), only one worksheet (the first of the spreadsheet) and only the retrieval of the pure data (no functions, formats, graphs, images, etc).
    Bad idea after all.
    If the sole purpose is to have an embedded database, rather consider JavaDB, Derby or Hypersonic instead of Excel.

  • How can i convert New Microsoft Office Word Document to adobe

    how can i convert New Microsoft Office Word Document to adobe

    Hi itchigo,
    You can use Microsoft Word's inbuilt feature of converting the doc to pdf by simply selecting Save As> 'pdf doc format' from the drop down.
    Please refer: http://office.microsoft.com/en-001/word-help/save-as-pdf-HA010354239.aspx#BM11
    Adobe Reader does not have the capability of converting docs to pdf or vice versa. It can only be used to read pdf files.
    Regards,
    Rave

  • How do you convert a jar file into a java file,  ?

    how do you convert a jar file into a java file ?
    I am new to Java ,but have a little experience in C++ and Visual Basic.
    I want to edit and maybe create my own mobile games that are written or converted into jar files.
    At the moment I am using Java NetBeans , and Easy Java( the java pad).
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?

    801283 wrote:
    how do you convert a jar file into a java file ?You generally don't. There exist decompilers, but if you're meant to have the source, you should either have it because you are the author, or you should be able to get it from the author.
    I am new to Java ,but have a little experience in C++ and Visual Basic.Does that experience include turning .exe files into C++ code? Because that's the equivalent of what you're asking
    I want to edit and maybe create my own mobile games that are written or converted into jar files.Eh?
    Are you saying you want to take existing games and modify them? If the creators allow you to modify their source, then they'll provide you with that source (the .java files). If you're allowed to add things but not modify, you don't need .java files. Just documentation, which, again, the creators should be providing.
    Or are you saying you want to create your own games and distribute them in jar files? If so, there's no need to turn jars into .java.
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?Why would you expect there to be one?

Maybe you are looking for

  • Disassemble PDF based on Content Table

    Suppose a PDF file has a table of contents. Is it possible to split this PDF file into multiple small PDF files that only contains one chapter? Thanks, P

  • *IMPORTANT* Limiting the number of active threads

    Hi All, i have a few of questions so please bare with me: 1) What is the best way to limit the number of active threads? ie i want to run 10 threads but i want there to be only 3 running at a time. this is how im thinking of doing it rite now: count

  • Ttcwadmin -create -dsn name returns error TT48008

    We had a functioning Oracle Clusterware managed Active Standby Pair configuration, but wanted to add an additional application to the cluster.oracle.ini. I did: ttcwadmin -stop -dsn <name> Then: ttcwadmin -drop -dsn <name> I updated the cluster.oracl

  • Passing parameters from URL to multiple iViews on a page.

    Hi Everyone, Could you please point me to a guide or howto, which explains on passing parameters from URL to multiple iViews on a page. I already know how to pass parameters from URL to a single iView (wiki). Thanks! Indy

  • Sum of the keyfigure from the Infocube and need to be placed in process chain

    Hi, Before asking your advise, here is my development, 1. We are implementing retraction through APD and generating CSV files with Excel file data as Extracting Inputs. 2. So executed all queries in cutomer exit variant by reading this inputs file fr