|
Nothing really outstanding at this point. Seems to be a push between the two.
|
|
|
|
|
Colin Angus Mackay wrote: I'm guessing that if you've seen double as being faster it is probably because the processor's native floating point representation is a double and floats (although they save memory) will be slower as a result because the processor converts them internally to doubles, processes it then converts it back. But, that is just my guess.
It's correct that the processor does all operations internally using doubles. Which ever type is faster also depends on several other factors, though. If you for example process an array of numbers, floats may be faster than doubles just because more of them fits in the processor cache.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi
for floating point operations Double is the most efficient type because those operations are optimized by hardware.
|
|
|
|
|
thank you all.
look at these codes
1.
for(int i=0;i<100000000;i++)
{
float f1=i/357;
float f2=i/546;
if(f1>f2/3454)
{
f2=f1;
}
}
2.
for(int i=0;i<100000000;i++)
{
double f1=i/357;
double f2=i/546;
if(f1>f2/3454)
{
f2=f1;
}
}
the first code consume 7.27 sec and second code consume 6.73 sec in my computer.
of course assignment statement is high time consumer.
somebody has any idea about it?
|
|
|
|
|
Is it possible to send xml data contains folder information from windows service to web application , if it is possible please help me
thanks in advance
|
|
|
|
|
I have a user-defined control which has as a child control a TextBox (.NET 3.0). When I call Focus() on this TextBox, it doesn't work. However, if I add a MessageBox.Show() line, and then call Focus(), it does indeed Focus on the TextBox. I'm not sure what is happening here - focusing on a different control, and then on the TextBox, doesn't seem to produce the same effect. Can anybody point out my (probably obvious) mistake?
|
|
|
|
|
Try to call Focus() on the user control first. Where did you add the MessageBox.Show() line?
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
The code is like this:
<br />
LineControl newLineControl = GetControlForLine(newLine);<br />
MessageBox.Show("try now"); <br />
newLineControl.Dialogue.Focus();
I tried adding newLineControl.Focus() before newLineControl.Dialogue.Focus() as suggested, but it didn't make a difference.
I tried logging when each control gets and loses focus, and got the following result when clicking on a LineControl (my user control):
TextBox got focus
LineControl got focus
..then away from it:
TextBox lost focus
LineControl lost focus
This was the same regardless of whether the MessageBox.Show() line was included, yet when that line is included, newLineControl.Dialogue.Focus() works, and when it isn't, it doesn't. Any ideas? Very confused.
|
|
|
|
|
Hi All,
I want to save the data in the textboxes of a form, in an excel sheet programmatically.
I know it to do using datagridview....but i dont get any idea as to how to transfer the data in textboxes to the excel sheet.
Please Help Me.
Regards,
Priya
|
|
|
|
|
What part do you not have any idea with? Is it the datagridview part or the Excel Office Interop part ( I am assuming this is how you are going to do it )?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
sir,
i want to make an 'exe' in visual studio 2005.
Which offers a connection to another 'exe'(running or installed in windows).How to make a connection like that
which gives a link to another programme.just as AJAX extensions making connection with visual studio 2005.
If anybody have the answer pleaes reply me
|
|
|
|
|
You are not very clear. If you want to run another .exe from an .exe, you can use the Process class.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hey Guys
1. I wanna know how to Monitor internet speed and connection state in C#, i m working of Windows Based Application (Related with SQL Server Database). In this Application i also wanna add some Add-Ins, I created 5 Add-ins for it so far. This Internet monitor will be the one of them.
2. SQL Server has 3 States
A. Running
B. Stop
C. Paused
How can i control these States from C# Remotely..?
Thanks
It will be apprehended..
I have No idea at all
|
|
|
|
|
code for reading .dwg file from folder through specifing the path where the files are saved and opening those files in a seperate window and the data contained in those files should be read and write that data into an excel file in simple way we need to select the files though browse folder dialog box in c# and i need the coding or program gor that plz help me
|
|
|
|
|
I think that you can find some useful resources here.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
code for reading data from .DWG file and write to an excel file
|
|
|
|
|
I want to execute commands in remote system (using IP)at cmd.exe using hyper terminal or telnet in c#.net windows application.
terminal or console should not be visible. It should receieve the commands and execute on the selected system are return the result.
Please suggest me to this
Praveenkumar Palla
|
|
|
|
|
I also have a same question..PraveenKumar, did you find answer for this??
|
|
|
|
|
i have a folder in my d: drive with 7 filles in it.
can i Zip the entire folder using C#?
|
|
|
|
|
Just search for 'zip' and 'c#' and you will find lots of links[^]
|
|
|
|
|
i want to make aform that seem to the log in form ,which have name & password.
how can i do check on the name and password on tha data base and if it not exist on DB.
thanks.my mail is mohammed.fci86@gmail.com
|
|
|
|
|
prog_mohmmed86 wrote: how can i do check on the name and password on tha data base and if it not exist on DB.
Well, you...
1. take the input that the user has given you.
2. hash the password (because you are using hashed passwords, right?)
3. call a stored procedure that looks up the user and compares the hashed passwords. This will return a true/false back to to the application.
4. If the password is correct you allow them to continue
5. If the password is wrong you repeat the process or exit the application.
If you want more detail on any of this you have to show where you got stuck. If you take a different design descision you have to tell us what that is.
|
|
|
|
|
Colin Angus Mackay wrote: 2. hash the password (because you are using hashed passwords, right?)
I hope so
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Paul Conrad wrote: I hope so
I was going to say salted hash, but I figured one-step-at-a-time would be better here.
|
|
|
|
|
Oh yes, just in moderation. Then maybe eventually some retna scanners and thumbprint scanners, too ( but that might be overkill )
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|