Click here to Skip to main content
15,175,733 members
Home / Discussions / C#
   

C#

 
GeneralRe: Tab Delimited file to sql database Pin
gavindon26-Feb-13 12:25
Membergavindon26-Feb-13 12:25 
QuestionListbox colours. Pin
Septimus Hedgehog26-Feb-13 8:35
MemberSeptimus Hedgehog26-Feb-13 8:35 
AnswerRe: Listbox colours. Pin
Alan N26-Feb-13 9:40
MemberAlan N26-Feb-13 9:40 
AnswerRe: Listbox colours. Pin
Dave Kreskowiak26-Feb-13 10:05
mveDave Kreskowiak26-Feb-13 10:05 
GeneralRe: Listbox colours. Pin
Septimus Hedgehog26-Feb-13 23:59
MemberSeptimus Hedgehog26-Feb-13 23:59 
GeneralRe: Listbox colours. Pin
Dave Kreskowiak27-Feb-13 2:01
mveDave Kreskowiak27-Feb-13 2:01 
GeneralRe: Listbox colours. Pin
Septimus Hedgehog27-Feb-13 6:39
MemberSeptimus Hedgehog27-Feb-13 6:39 
Questioncan floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 7:01
Membernotahack26-Feb-13 7:01 
probably something really dumb but I can not multiple floats and come up with anything but a whole number.

for example

float x = 200031010f;
float y = .86f;

float z = x * y;

I would expect z to be 1722668.6 but it is 1722668

Convert.ToSingle also truncates it to the whole number when converting a double.

what good is a float if multiple just gives whole numbers?
AnswerRe: can floats be multiplied and come up with a fraction? Pin
Richard Deeming26-Feb-13 7:15
mveRichard Deeming26-Feb-13 7:15 
AnswerRe: can floats be multiplied and come up with a fraction? Pin
Richard MacCutchan26-Feb-13 7:26
mveRichard MacCutchan26-Feb-13 7:26 
AnswerRe: can floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 7:35
Membernotahack26-Feb-13 7:35 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Richard Deeming26-Feb-13 8:39
mveRichard Deeming26-Feb-13 8:39 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 8:44
Membernotahack26-Feb-13 8:44 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Richard Deeming26-Feb-13 9:03
mveRichard Deeming26-Feb-13 9:03 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
notahack26-Feb-13 9:13
Membernotahack26-Feb-13 9:13 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Dave Kreskowiak26-Feb-13 10:03
mveDave Kreskowiak26-Feb-13 10:03 
GeneralRe: can floats be multiplied and come up with a fraction? Pin
Dave Kreskowiak26-Feb-13 9:58
mveDave Kreskowiak26-Feb-13 9:58 
QuestionC# EF5 List<ENum> Persisting ? Pin
Khorne26-Feb-13 5:01
MemberKhorne26-Feb-13 5:01 
AnswerRe: C# EF5 List<ENum> Persisting ? Pin
Ssyxz26-Feb-13 16:14
MemberSsyxz26-Feb-13 16:14 
GeneralRe: C# EF5 List<ENum> Persisting ? Pin
Khorne26-Feb-13 21:41
MemberKhorne26-Feb-13 21:41 
AnswerRe: C# EF5 List<ENum> Persisting ? Pin
Jegan Thiyagesan27-Feb-13 7:42
MemberJegan Thiyagesan27-Feb-13 7:42 
QuestionNeed code Pin
jelintaric25-Feb-13 23:41
Memberjelintaric25-Feb-13 23:41 
AnswerRe: Need code Pin
Manfred Rudolf Bihy26-Feb-13 0:06
professionalManfred Rudolf Bihy26-Feb-13 0:06 
AnswerRe: Need code Pin
Mycroft Holmes26-Feb-13 0:43
professionalMycroft Holmes26-Feb-13 0:43 
AnswerRe: Need code Pin
Amir Mohammad Nasrollahi29-Jul-13 22:33
professionalAmir Mohammad Nasrollahi29-Jul-13 22:33 

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.