Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can made login user form application in c#.net? Pin
Dave Kreskowiak16-Sep-07 1:38
mveDave Kreskowiak16-Sep-07 1:38 
QuestionSMTP feedback from project Pin
Mark F.15-Sep-07 4:19
Mark F.15-Sep-07 4:19 
AnswerRe: SMTP feedback from project Pin
Mohamad K. Ayyash15-Sep-07 4:33
Mohamad K. Ayyash15-Sep-07 4:33 
GeneralRe: SMTP feedback from project Pin
Mark F.15-Sep-07 4:38
Mark F.15-Sep-07 4:38 
AnswerRe: SMTP feedback from project Pin
Mohamad K. Ayyash15-Sep-07 4:58
Mohamad K. Ayyash15-Sep-07 4:58 
AnswerRe: SMTP feedback from project Pin
Ed.Poore15-Sep-07 7:04
Ed.Poore15-Sep-07 7:04 
GeneralRe: SMTP feedback from project Pin
Mark F.16-Sep-07 3:47
Mark F.16-Sep-07 3:47 
QuestionData types Pin
jon-8015-Sep-07 3:12
professionaljon-8015-Sep-07 3:12 
Confused | :confused:

I'm running this short program but it's taking more than an hour to run.

using System;
using System.Collections.Generic;
using System.Text;

namespace TestConsole2
{
    class Program
    {
        static void Main(string[] args)
        {
            float i = 1; float j = 0;

            while (i > 0)
            {
                j = i;
                i++;
            }

            Console.WriteLine("The maximum value of float is : " + j);
            Console.WriteLine("The value of float after overflow is :" + i); 
        }
    }
}

(adapted from http://www.java2s.com/Tutorial/C/0040__DataType/Getmaximumandminimumvaluesofdatatype.htm)

2. Does anyone have a table with c# data types, description and range values, pls?

3. Initially i started out this program because I was looking for an explanation of "when converting an int to a float there can be a loss in precision" (Wrox C# 3rd Ed. pg. 156). Does anyone have a practical example, please?



Jon

AnswerRe: Data types Pin
Dave Kreskowiak15-Sep-07 3:21
mveDave Kreskowiak15-Sep-07 3:21 
GeneralRe: Data types Pin
jon-8015-Sep-07 3:24
professionaljon-8015-Sep-07 3:24 
JokeRe: Data types Pin
Paul Conrad15-Sep-07 4:00
professionalPaul Conrad15-Sep-07 4:00 
GeneralRe: Data types Pin
jon-8015-Sep-07 4:16
professionaljon-8015-Sep-07 4:16 
GeneralRe: Data types Pin
Dave Kreskowiak15-Sep-07 6:01
mveDave Kreskowiak15-Sep-07 6:01 
GeneralRe: Data types Pin
jon-8015-Sep-07 6:29
professionaljon-8015-Sep-07 6:29 
GeneralRe: Data types Pin
Dave Kreskowiak15-Sep-07 6:41
mveDave Kreskowiak15-Sep-07 6:41 
GeneralRe: Data types Pin
jon-8016-Sep-07 1:36
professionaljon-8016-Sep-07 1:36 
GeneralRe: Data types Pin
Dave Kreskowiak16-Sep-07 1:50
mveDave Kreskowiak16-Sep-07 1:50 
GeneralRe: Data types Pin
jon-8016-Sep-07 2:03
professionaljon-8016-Sep-07 2:03 
GeneralRe: Data types Pin
jon-8015-Sep-07 6:37
professionaljon-8015-Sep-07 6:37 
AnswerRe: Data types Pin
DavidNohejl15-Sep-07 4:39
DavidNohejl15-Sep-07 4:39 
GeneralRe: Data types Pin
Colin Angus Mackay15-Sep-07 14:40
Colin Angus Mackay15-Sep-07 14:40 
QuestionReflection and Generics (List) [modified] Pin
Vertyg015-Sep-07 2:31
Vertyg015-Sep-07 2:31 
AnswerRe: Reflection and Generics (List) Pin
Guffa15-Sep-07 3:03
Guffa15-Sep-07 3:03 
GeneralRe: Reflection and Generics (List) Pin
Vertyg015-Sep-07 3:05
Vertyg015-Sep-07 3:05 
GeneralRe: Reflection and Generics (List) Pin
Giorgi Dalakishvili15-Sep-07 3:25
mentorGiorgi Dalakishvili15-Sep-07 3:25 

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.