How do i convert a float value to a double value?

How do i convert a float value to a double value? HELP PLEASE!! im very stuck!! i gota float data type and i need to convert it to a double data type in order to use it in another operation.....
thank u so much!

safe dint realise ppl were so arrogant. thanks for the reply but less of the sarcasm!

Similar Messages

  • How do you convert a date entry to a numeric value?

    In Excel, I used to use the MAX() function on a range of dates to get the latest date from the range.  This does not work in Numbers.
    Here is the function I used in Excel:
    =IF(OR(TODAY()-MAX(J4:J56)>179,'Sheet 1 - Table 1'!I2-MAX(I4:I56)>4999),"NEED OIL CHANGE","")
    J4:J56 is a list of dates.

    Norman,
    Numbers has data types.  With regard to:
    TODAY()-MAX(J4:J56)>179
    TODAY() returns a date/time value
    MAX(J4:J56) also returns a date/time value
    TODAY()-MAX(J4:J56)  returns a duration
    179 is a number NOT a duration.  179 I think is supposed to be 179 days which you would enter as "179d".  a duration is expressed in weeks, days, hours, minutes, seconds, milliseconds.  So "179d" is short for "179d 0h 0m 0s 0ms"
    This may work better for you:
    =IF(OR(TODAY()−MAX(J4:J56)>"179d",F1−MAX(I4:I56)>4999),"NEED OIL CHANGE","")
    note that I changed "'Sheet 1 - Table 1'!I2" to "F1" for my test as I do not have that table.  "'Sheet 1 - Table 1'!I2" looks like an excel reference that will not work in Numbers.  you should replace this by removing, then locating and selecting the correct cell in Numbers.
    Said another way... select that part of the formula, delete, then click the cell where that resides in a Numbers table

  • Converting String  into a Double value

    Hi
    iam really stuck can anyone please help that what i should do
    to convert a String variable into a double value
    iam using CLDC1.1 and MIDP2.0
    please tell me how its done
    Thank in advance

    hi,
    thanx alot it really worked now i want to convert the answer of the double variable back to string can you please tell me how to do it thanx alot

  • How do I convet C Float array to Java Float Array.

    Hi All,
    I am using some C function in the JNI which will return Float array.
    How do I convert the Float C array elements to jfloatArray elemets. And my native method implementation should return jfloatArray.
    If any one of you have the sample code please send reply.
    regards
    Ravi Kumar

    to return the c array to jfloat array do the following:
    ur function should have a return type of jfloat
    this is for c++::
    jfloatArray ret = (jfloatArray)env->NewFloatArray(length of the array);
    env->SetFloatArrayRegion(ret,index,number of retunrs,jfloat *);
    for c u just have to include the env variable
    jfloatArray ret = (jfloatArray)env->NewFloatArray(env,length of the array);
    return ret;
    this will work when u give the array indexes properly.
    regards
    vidhya

  • How can I Convert a numeric string to a formatted string?

    I have a string value returned from a background tool that will range from 0 to possibly terabytes as a full number.  I want to format that number to use commas and to reduce the character count using an appropriate size modifier (KiB, MiB, GiB, etc).  I've tried converting the string number to a Double value using Double.parseDouble() and then performing the math based on the size of the value with this code:
    Double dblConversionSize;
    String stCinvertedSize;
    dblConversionSize = Double.parseDouble(theValue);
    if (dblConversionSize > (1024 * 1024 * 1024))
         stConvertedSize = String.format("%,.000d", dblConversionSize / 1024 / 1024 / 1024) + " TiB";
    I've also tried using
         String.valueOf(dblConversionSize / 1024 / 1024 / 1024) + " TiB";
    However, the formatting is failing and I'm either getting a format exception or the result is displayed as a number with no decimal component.
    Anyone have a recipe for this?
    Thanks,
    Tim

    TOLIS Tim wrote:
    Thanks, but the reason for using Double is that the division math can leave me with values like 2.341 GiB.  I don't want to drop the values (or round) on the right side of the decimal point.
    Then you may look for DigDecimal which avoids digitization errors.
    NumberFormat will handle all subclasses of Number. You might need another specialization. Just look at the API which one is suitable.
    bye
    TPD

  • Rounding xs:double value

    Hi in bea xquery function pallette we only foung round() for decimal type.But we had a requirement to round xs:double values.
    How can i achive this ,any method for round double values or to convert double to decimal.

    does round( $someDouble ) not work?
    Can you please try a few things yourself before posting?
    If you already have, can you please post what you have tried?

  • Subtracting very small double value

    i'm having trouble figuring this out..i'm sure it's a simple solution..anyhoo..i'm trying to run the following line of code
    value=1-((1-b1[8+(i%classes)])*(1-b2[4+(i%classes)]));
    let me point out that value is a double value, and b1 and b2 are double arrays...
    the values of b1 and b2 are very small(around E-60)
    the PROBLEM is that value returns 0.0 when i run my code instead of the small value. I'm sure it's something I'm doing/not doing, but I'd appreciate some help on what is going on. Also as a note, I'm running J2SE 1.3.1. I saw on the API that the min double value is supposed to be around E-324 but any suggestions people? Thanks!!

    1-b1[8+(i%classes)]This is 1 - (10^-60), right? A double value only has about 16 significant digits, not 60, so the nearest possible double number to that is 1. Hence you get 1 - 1*1. There's a whole school of mathematics called "numerical analysis" that deals with questions like this. In this particular case, if b1[x] and b2[x] are always extremely small, you should evaluate the expression in advance so that it looks like b1 + b2 - b1*b2, which in turn will round to b1 + b2.
    PC²

  • How can I convert Float numbers which are represented as 'E-05' to full precision

    I have over 6,000 records which all have 'E-05' in the field.
    It should actually be full precision, such as:  0.000046793055472781
    How can I convert all of these?  There are around 600,000 records in the whole table, so I only want to convert the 'E-05' records.  For some reason these are incorrect, but all the others are totally fine.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    If they are float values, they have the full precision you can get with a float value.
    Keep in mind that what you see in management studio is a textual representation of the value. It is not the value itself. A float value is stored as 53 bits of mantissa and an 11-bit exponent which is a power of 2.
    To view the value without the exponent, you can cast to decimal, although this will give you a slightly different value. You can also use the str function:
    DECLARE @f float
    SELECT @f = 0.000046793055472781
    SELECT str(@f, 20, 18)
    However, formatting of the value is best done in the presentation layer. You should not change the data you have in the table. But if the source is actually exact decimal values, maybe you should use a decimal data type instead.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do I know if I can convert a String value to an int value or not?

    Hi,
    I want to know how to make the judgment that if I can convert a String value to an int value or not? Assume that I don't know the String is number or letters
    Thank you

    Encephalopathic wrote
    Again, why?One of the problems (have been dued) in my codelab asks us to write a class as follow
    Write a class definition of a class named 'Value' with the following:
    a constructor accepting a single integer paramter
    a constructor with no parameters
    a method 'setVal' that accepts a single parameter,
    a boolean method, 'wasModified' that returns true if setVal was ever called for the object.
    a method 'getVal' that returns an integer value as follows: if setVal has ever been called, it getVal returns the last value passed to setVal. Otherwise if the "single int parameter" constructor was used to create the object, getVal returns the value passed to that constructor. Otherwise getVal returns 0.
    The setVal(int y) returns nothing, so how do I know whether it has been called or not?
    Thank you

  • How can I convert (or switch) the RGB percent values from the LR histogram into RGB values which are shown e. g. in PS/CameraRAW?

    In LR 5.5 (same in previous versions) the RGB values in the histogram are shown in percent (relativ) values. I prefere to see the absolute values, but I can`t find any way to switch. Maybe this option is intentional disabled, because LR works in 16-Bit mode this would result in values up to 2^16. But as i compared the relativ values from LR with the absolute values from PS i run into a conversion problem. The following example shows the differences:
    CameraRAW : RGB, 128,0,0
    Lightroom: RGB, 43,8%, 19,0%, 6,2%
    CameraRAW: RGB, 0,128,0
    Lightroom: RGB, 29,8%, 47,5%, 17,5%
    Mainly i have two questions:
    1. Is there any possibility to change the percent RGB values in LR to absolut values?
    2. How can i convert CameraRAW values to LR values (see above)?

    TThe reason that a design decision was made from the beginning of LR to show only the percentage values was that RGB values are dependent on the color space and the LR histogram and numerical readout are derived from the Develop module's display space which is a hybrid color space with ProPhoto RGB primaries and the sRGB TRC. Thus the numerical values in the display would be different from the exported RGB image (in an orthodox space) and it was feared that this would be misleading. When soft proofing was introduced, because it involved converting the display to an orthodox space, it became possible to use the 0-255 scale in that mode.

  • How do u convert a numeric value to char

    hi,
    how do u convert a numeric value NUMBER(22) to a character value.... like a to_char() function?
    i've tried the CAST function it won't work.

    Hi,
    Use of CAST function will convert NUMBER to CHAR but it takes a lot of time if there are large number of recrods.
    Syntax:
    CAST(col_name AS char)
    I have tried this, it worked fine for less records.
    Are you getting any error while using cast function or while querying..
    As far as I know it won't give error in these cases (if correct syntax used) but it will take very much time (depending on the number of records) while querying.
    -Vency

  • How do I convert the ASCII character % which is 25h to a hex number. I've tried using the scan value VI but get a zero in the value field.

    How do I convert the ASCII character % ,which is 25h, to a hex number 25h. I've tried using the scan value VI but I get a zero in the value field. 

    You can use String to Byte Array for this.

  • How can i write the floats value in Unitronics vision230 plc using modbus Ethernet

           How can i write the Float value in unitronics Vision230 PLC usinsg modbus ethernet (MB Ethernet Master Query.vi) I  read and write  the 32 bit register,  for e.g i want to write the 23.45 value on 2nd add. of MF. And MF register is 32 bit register. I  read and write  the 32 bit register.
    Narendra.
    Solved!
    Go to Solution.

     Thanks Amit for your solution but i can not use the string to write the value because  MB Ethernet master Query.vi only accepet the integer value its not take string values or any other i.e floats values etc.....otherwise i have  no problem to write or read the 32 bit register values , only problem is that the MB Ethernet master Query.vi only accept the integer value there4 how can write the float value.
    Narendra
    Message Edited by Artemistech on 01-30-2009 11:06 PM

  • How to get converted as function IN parameter value

    Hi Guys,
    I am passing one value in the function, that value is 'Animation'. After passing this I need to check in the database level like '%|Animation|%'.
    How can I convert this when it comes into the begin part.
    Thanks in advance. this is vary urgent.
    Regards,
    Lakshman.

    Duplicate thread. Answers already on the other: Funtion in parameter

  • How to convert from scientific notations to double value ?

    Hi all,
    i need to convert a string 2E-23 to corresponding double values so that i can compare it one more existing double value. Is there any API present for this ?
    Thanks and regards,
    rosamama.

    Note: This thread was originally posted in the Swing forum, but moved to this forum for closer topic alignment.

Maybe you are looking for

  • References from nested clusters

    Hi, Currently our station can test only one product at the time, but we modified the wiring so now we can attach 2 units to the same station. A new application must be written to handle the new scenario. The test has to be executed several times on b

  • ASN from vendor and inbound delivery creation

    hi I have a scenario where vendor sends ASN via EDI to R/3. This inbound ASN should create an inbound delivery.  Can you please help me knowing the idoc type, message type etc which will serve my purpose. Also the FM / Badi for inbound delivery creat

  • Button in form don't work in browser

    Hi, We have few pdf files who have some form button. With this button's we can go to different other pdf file. this button's are use to navigate between PDF files. Since Adobe reader DC, with the new plugin in the browser, this button's have no actio

  • New to Solution Manager

    We are planning to install Solution Manager and have arrived on following configuration based on what we could understand from Sizing tool and guide; Intel Xeon Quad core with 16 GB RAM, 500 GB HDD - Win 2008 Enterprise-64 bit 25 user and SQL 2008 5

  • IPod Touch stopped connecting to Internet (WiFi)

    Just unbelieveable-- I've been using my iPod Touch with a variety of WiFi connections the past 3 months, but really wanted WiFi at my home. So yesterday I got a D-Link DIR-635 Router acting as a bridge Router (connected to my older DI-604 Router) and