Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
GeneralRe: Play WAV file from embedded resources. Pin
ranzask30-Jan-06 0:05
ranzask30-Jan-06 0:05 
QuestionEncode MPEG2 Pin
Emiliano27-Jan-06 14:54
Emiliano27-Jan-06 14:54 
QuestionSliding window and always on top. Pin
RobS27-Jan-06 12:52
RobS27-Jan-06 12:52 
Questionweb services creation Pin
gregoire.b27-Jan-06 12:10
gregoire.b27-Jan-06 12:10 
GeneralRe: web services creation Pin
mast1727-Jan-06 17:53
mast1727-Jan-06 17:53 
QuestionSingle.Parse() Pin
atanamir27-Jan-06 12:05
atanamir27-Jan-06 12:05 
AnswerRe: Single.Parse() Pin
Colin Angus Mackay27-Jan-06 13:50
Colin Angus Mackay27-Jan-06 13:50 
GeneralRe: Single.Parse() Pin
atanamir27-Jan-06 15:11
atanamir27-Jan-06 15:11 
Hi,

Thanks for the reply;

Yeah i was thinking about using a double or decimal value for this; but I am writing a compiler which has REAL and LONGREAL, hence i was trying to use float. I tried this in code:

float n = 99.5E-1F;
Console.Writeline(n);

that comes out as 9.95.

Infact, I just tried hard-coding this in:

object n = Single.Parse("99.5E-1");
Console.Writeline(n);

it will still come out as 9.95. However, I have following:

class Token {
object _val;
}

If I store the value in there, it gets transformed to 9.949999....

Am i not supposed to cast it into object?

Thank you for your time
Stephen
Questionapp.config file Pin
gregoire.b27-Jan-06 9:14
gregoire.b27-Jan-06 9:14 
AnswerRe: app.config file Pin
Michael P Butler27-Jan-06 10:05
Michael P Butler27-Jan-06 10:05 
Questiontype or namespace error in C#(Asp.net) Pin
idreesbadshah27-Jan-06 8:02
idreesbadshah27-Jan-06 8:02 
AnswerRe: type or namespace error in C#(Asp.net) Pin
Colin Angus Mackay28-Jan-06 5:51
Colin Angus Mackay28-Jan-06 5:51 
QuestionEvent for form has changed location Pin
Viktor Nilsson27-Jan-06 7:52
Viktor Nilsson27-Jan-06 7:52 
AnswerRe: Event for form has changed location Pin
Dave Kreskowiak27-Jan-06 8:25
mveDave Kreskowiak27-Jan-06 8:25 
AnswerRe: Event for form has changed location Pin
Robert Rohde27-Jan-06 10:43
Robert Rohde27-Jan-06 10:43 
QuestionGaussian blur troubles Pin
Eugene Kosevtsov27-Jan-06 7:12
Eugene Kosevtsov27-Jan-06 7:12 
AnswerRe: Gaussian blur troubles Pin
User 665827-Jan-06 7:38
User 665827-Jan-06 7:38 
QuestionMarquee Selection in ListView Pin
Alomgir Miah27-Jan-06 6:16
Alomgir Miah27-Jan-06 6:16 
AnswerRe: Marquee Selection in ListView Pin
Dave Kreskowiak27-Jan-06 6:48
mveDave Kreskowiak27-Jan-06 6:48 
QuestionComboBox Pin
aPerfectCircle27-Jan-06 5:52
aPerfectCircle27-Jan-06 5:52 
AnswerRe: ComboBox Pin
LighthouseJ27-Jan-06 7:43
LighthouseJ27-Jan-06 7:43 
QuestionDataColumn type Pin
denizmercan27-Jan-06 5:28
denizmercan27-Jan-06 5:28 
AnswerRe: DataColumn type Pin
tarasn27-Jan-06 9:16
tarasn27-Jan-06 9:16 
GeneralRe: DataColumn type Pin
denizmercan27-Jan-06 10:37
denizmercan27-Jan-06 10:37 
QuestionC# IrDA communication between Pocket-PC and MCP-2155. Pin
dannygilbert327-Jan-06 5:19
dannygilbert327-Jan-06 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.