how to get the number of digits after the decimal point ex : Input : 5.1234 Expected Output : 4 i wrote this code but there are wornings.. what is wrong here ?? double input; int x=input; // so x=the integeral part of input int y=input-x; // so y=the fractional part while(y>0) {count++; input*=10; x=input; y=input-x; } plz help me !! elmahdy ahmed elmahdy
elmahdy
Posts
-
how to get the number of digits -
how to get the number of digitshow to get the number of digits after the decimal point ex : Input : 5.1234 Expected Output : 4 i wrote this code but there are wornings.. what is wrong here ?? double input; int x=input; // so x=the integeral part of input int y=input-x; // so y=the fractional part while(y>0) {count++; input*=10; x=input; y=input-x; } plz help me !! elmahdy
-
How to associate a cursor with my Appi have made a cursor.. with the extension *.cur i have an application with VB6 .. how can i add this cursor to my application ???? ahmed elmahdy
-
how to perform that...how to get sounds effects to my programin VB6 example : when i press a button a song plays and so on BUT without running its program(winamp,windows media player,...etc) please reply to me ahmed ahmed elmahdy
-
How to suport my application with soundshow to get sounds effects to my programin VB6 example : when i press a button a song plays and so on BUT without running its program(winamp,windows media player,...etc) please reply to me ahmed
-
i want this functioni use wav sort i want to display a sweety things when my program find music ... i will deal with sound ports ?? what is the best method ? thanks alot ahmed elmahdy
-
i want this functioni made an audio program But i need a function that tells me if the current audio contains music .. that to provide my application more features Really i need ur help thanks alot ahmed elmahdy