Search Result

Collapse
8 results in 0.0014 seconds.
Keywords
Members
Tags
double
  •  

  • mathgeek314
    started a topic Why won't my doubles hold their decimals?
    in Java

    Why won't my doubles hold their decimals?

    I am trying to write a program to create boundaries for a polygon on a two-dimensional coordinate plane. Here is my code:

    Code:
    public class Example {
    public Example()
        {
            for (int y = 0; y < game1.o.l; y++)
            {
                System.out.println("( "+game1.o.bind[0][y]+", "+game1.o.bind[1][y]+" ) -> ( "+game1.o.bind[2][y]+", "+game1.o.bind[3][y]+"
    ...
    See more | Go to post

  • Gregosky
    started a topic convert double* to float*
    in C

    convert double* to float*

    Hi guys,

    I have written a library that manipulates data stored in double arrays. It took months to fine tune it and here it is, working fine. Everything was great until I started integrating my project with another open source project that uses float arrays. I need to pass my double arrays to the function that requires float arrays.. I am out of ideas how to do that.. I would like to avoid re-writing my project to use float instead...
    See more | Go to post

  • How to Implement Shift+DoubleClick for a Tray VB App?

    I have written a program that can be minimized to the System Tray.

    I know how to invoke the program from Tray and cause it appear again with Double-Click.

    But I don't know how to cause the program to reappear from the System Tray only with Shift+DoubleCli ck.

    When I minimize a program to Tray, I can call its menu with Right-Click or I can Restore it with Double Click.

    In Visual Basic, we...
    See more | Go to post

  • ramilol
    started a topic c++ gdi+ double buffer problem
    in C

    c++ gdi+ double buffer problem

    ok i have no idea how double buffer works
    i really need good sample example or tutorial
    thanks
    Ramiz
    See more | Go to post

  • livesinabox
    started a topic Trouble understanding "Double" Pointers.
    in C

    Trouble understanding "Double" Pointers.

    I am a student and I am having trouble understanding Dynamic Memory Allocation and the usage of Double Pointers.

    Code:
    int **A
    
    A=(int **)malloc(r1*(sizeof(int*)));
    
    for(i=0;i<r1;i++)
    A[i]=(int *)malloc(sizeof(int)*c1)
    In the above snippet r1 and c1 refer to the number of rows and columns of a matrix A.

    My question : What does the malloc function do here? I know malloc()...
    See more | Go to post
    Last edited by Banfa; May 28 '10, 09:20 AM. Reason: Use this slash / for closing tags :-)

  • thatgu
    started a topic Return a double variable
    in C

    Return a double variable

    I was making a funtion that done some maths and returns a double signed variable with decimal places and I wanted to use return to let me use i once more in the Main function

    Basicly can you make return work with a double variable
    See more | Go to post

  • A CASE statement using another CASE statement as it's expression

    Im trying to use 2 CASE statements together in a SELECT query without much luck.
    The second CASE uses the output from the first CASE as it’s expression (well it’s supposed to).
    When the 2nd CASE statement is removed it works, but when it is included i get this error:

    Code:
    SELECT accountNum
    
    ,balanceCalculation = CASE
    	WHEN Balance > 5000 THEN Balance *2
    	ELSE Balance /2
    END
    ...
    See more | Go to post

  • amarniit
    started a topic Format specifier for double and lond double in C
    in C

    Format specifier for double and lond double in C

    I am making a project on the basis of numbers........ here i need that i print a bigger number whose lenght is more than 300 digits....... while i am doing it in C than i am getting a problem my all digit convert in base of "e" and i get the number in this format 1.2222222222222 222222222222222 222222000000000 000000000000000 0000000000000e+ 127
    but i need that my number will displayed as 1.2222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 222222222222222 22222222222222...
    See more | Go to post
    Last edited by RedSon; Nov 3 '09, 03:41 PM. Reason: Phone number? Seriously? Comeon people! It's the internet!
Working...