|
6.16753E+8 is equal to 616753024
its the same, well almost, the first is less precise
EDIT: sorry i missed what your problem was... what about trying to convert to a double instead of a float
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
objStockCard.Pump is float;
objStockCard.Pump = Convert.ToSingle(txtPrice.Text);
So I use Convert.ToSingle (Convert.ToDouble is exact but complier does not accept set a double variable to a float variable).
Pls tell me how I can do now. I do not want to change objStockCard.Pump type.
Thanks for your reply.
|
|
|
|
|
can you not use
float.parse(txtPrice.Text);
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
The same result.
I think I must change DataType to Double.
Anyway, I would like to thank for your help.
Phuc PHAM
|
|
|
|
|
if your going to change the type try using a decimal[^] type, it seems to be a better option as a quick bit of googling says that floats and doubles are not to good for keeping precision of numbers.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
Who can help me ? how we are embed C# in Web !!!!???
|
|
|
|
|
Using ASP.NET? What do you want to achieve? Please be more specific...
|
|
|
|
|
If what you want to do is create websites in C# then the Microsoft Visual Web Developer Express Edition would be the way to go about doing so...
http://msdn.com/express
foreach( inch on Jason )
{
Girlfriend.IsHappier();
}
|
|
|
|
|
Get yourself a large block of lucite and a chisel. Remove all of the lucite that doesn't form the shape C#. Now, find a really heavy duty web - you may need a lot of spiders for this bit. Finally, push the lucite firmly into place inside the web.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi all
I have one problem in C# that is related to XMl Sorting...That is Based On the text Length
Languuage:C#
<person>
<fname>Joe</fname>
<fname>Prabhakar</fname>
<fname>ABBBBBBBBCCCCCCCCCC</fname>
</person>
I want this XML as
<person>
<fname>ABBBBBBBBCCCCCCCCCC</fname>
<fname>Prabhakar</fname>
<fname>Joe;lt;/fname>
</person>
see the sorting is not based on Accending or decending order
it's based on the length of the text
Hope this question is Clear to you
Thanks
prabhakar dwivedi
|
|
|
|
|
that's a pretty straightforward problem with an equally straightforward solution:
1. read the XML doc
2. remove the nodes
3. sort the nodes
4. add the nodes back to the doc
5. save the doc
I'd recommend an XmlDocument[^] for this.
|
|
|
|
|
Thanks to you .. i Know this but i am looking for any in build function provided by .Net for sorting XML doc
Thanks
prabhakar dwivedi
|
|
|
|
|
Hi all,
I m making a window application in which I want to make a rectangle/circle on picture box on crop that portion from picture box and this will we perform through the mouse event and also we can move that circle/rectangle at any position, can anyone provide me source code for that. Plz it’s very urgent.
Thanks in advance.
|
|
|
|
|
Babita Shivade wrote: can anyone provide me source code for that
no i can't
you must learn about GDI++ programming with C#, there are plenty article if you want to "googling" it, especially with BufferedGraphics class in .Net
happy learning
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
Hi babita,
I am facing with the same issue, i request you if you have any help available then please reply me.
Paresh.R.H
|
|
|
|
|
Hi,
I have a small problem.I generated a pdf file with some temperory name and later i am renaming the file.When i am trying to rename the file using FileSystem.Rename, i get an exception "Error saving document". I don't understand why am i getting this error.I checked if my file is already open, but it was not.
Please do let me know if you have any ideas.
Thnx in advance.
|
|
|
|
|
If you have touched the file it is possible that you are maintaing a connection to the file and therefore it is in use. Make sure you have destroyed/closed all the objects/methods you used to create the file before renaming.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Firstly, Thnx for the reply.
I haven't touched the file and i have destroyed all the objects related to it, yet i get the same error.I just dont get what the problem might be.
|
|
|
|
|
make sure any handles you have to the file system are closed and not just cleared.
From memory of you clear a file reference it goes to GC, and the handle can still be 'open' until it is destroyed. That is why you should always explicitly close any file streams.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I have played a video using the WindowsMediaPlayer tool.......i am able to play the video through "axWindowsMediaPlayer1.URL= @""
The code is as follows:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
axWindowsMediaPlayer1.URL =
@"http://go.microsoft.com/fwlink/?LinkId=95772";
}
}
}
I need to extract the videos from a specified folder or a directory from my computer .......
Please Help.....
|
|
|
|
|
I get all running processes on the computer
how i can bring a selected process to front if it has an interface using c#?
|
|
|
|
|
|
hi everyone, when we write a program in the any programing languages he result of the compiling process is an executable file (.exe) how we can change this result ?
we can do this ?
if not what we can do to have a different result type ? ( like writing a converter program that converts the executable result of the main program to another result and .... )
thanks to you all
|
|
|
|
|
ariyanna wrote: hi everyone, when we write a program in the any programing languages he result of the compiling process is an executable file (.exe) how we can change this result ?
What result are you expecting from complier ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|