Search:

Type: Posts; User: rosh72851

Search: Search took 0.17 seconds.

  1. Replies
    1
    Views
    1,459

    Recursive function based on Linked list

    Hi I have a problem. I have to create a 'recursive loop' to search each node in a single linked list for the smallest value and return the node before that node.
    I was hoping to solve this problem...
  2. Buffer overflow while writing a recursive function to fill the polygon with a color

    Hey,
    I have a program that has to draw a polygon, then apply a recursive function that fill the polygon with a color. Unfortunately, I cannot use the fillpolygon() function, but have to make my...
  3. Re: java.util.UnknownFormatConversionException error

    Heres a snippet of the code:


    public static void main(String[] args)
    {
    double x;
    x = (Math.PI)/4;
    double rad=0;
    double result=0;
    System.out.printf("Evaluate x =...
  4. Java error "java.util.UnknownFormatConversionException"

    Why do I get this error?
    Code:



    Exception in thread "main" java.util.UnknownFormatConversionException: Conversio n = '5' at java.util.Formatter.checkText

    (Formatter.java:2502) at...
  5. Java error "java.util.UnknownFormatConversionException"

    Why do I get this error?



    Exception in thread "main" java.util.UnknownFormatConversionException: Conversio
    n = '5'
    at java.util.Formatter.checkText(Formatter.java:2502)
    at...
  6. How to convert float and double data types to binary?

    how do I convert float and double data types to binary. For float, ive used the function



    Integer.toBinaryString(Float.floatToRawIntBits(value));


    But the answer doesnt seem to be right....
  7. Re: machine epsilon

    If I input a value of 1 into the function: Integer.toBinaryString(Float.floatToRawIntBits(value));

    I get the solution as 111111100000000000000000000000. which is definitely wrong.

    If someone...
  8. Re: machine epsilon

    Anybody. I just need to know to convert a float into binary. Not the code.
  9. Re: machine epsilon

    Ok I figured how to do that.

    Next question, how do I convert float and double data types to binary. For float, ive used the function


    Integer.toBinaryString(Float.floatToRawIntBits(value));...
  10. What would be the smallest positive float (epsilon) such that 1.0 + epsilon != 1.0f?

    What would be the smallest positive float (epsilon) such that 1.0 + epsilon != 1.0f?
    What is the condition that I have to use to attain this?
Results 1 to 10 of 10