Click here to Skip to main content
15,891,777 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data Conversion? Pin
dec8220-May-09 15:28
dec8220-May-09 15:28 
GeneralRe: Data Conversion? Pin
musefan20-May-09 21:51
musefan20-May-09 21:51 
QuestionStack Overflow Pin
Denis J. González19-May-09 21:24
Denis J. González19-May-09 21:24 
AnswerRe: Stack Overflow Pin
Nagy Vilmos19-May-09 21:39
professionalNagy Vilmos19-May-09 21:39 
GeneralRe: Stack Overflow Pin
OriginalGriff19-May-09 21:48
mveOriginalGriff19-May-09 21:48 
GeneralRe: Stack Overflow Pin
Nagy Vilmos19-May-09 22:05
professionalNagy Vilmos19-May-09 22:05 
GeneralRe: Stack Overflow Pin
Denis J. González20-May-09 3:53
Denis J. González20-May-09 3:53 
GeneralRe: Stack Overflow Pin
Nagy Vilmos20-May-09 4:17
professionalNagy Vilmos20-May-09 4:17 
Every fold should DOUBLE the width; i.e. 0.1, 0.2, 0.4, 0.8, 1.6, etc
I mis-read and if your iteraction got there it would return the value.

Try an algorythm the other way:

TimesToFild (paperWidth)
  if paperWidth >= distanceToMoon
    0 folds needed
  else
    1 + TimesToFild (paperWidth * 2) needed


Start with a shorter distance say 3 and check your function.
Don't use floats, go double.



Panic, Chaos, Destruction.
My work here is done.

AnswerRe: Stack Overflow Pin
monstale19-May-09 21:46
monstale19-May-09 21:46 
GeneralRe: Stack Overflow Pin
Nagy Vilmos19-May-09 22:05
professionalNagy Vilmos19-May-09 22:05 
AnswerRe: Stack Overflow Pin
Guffa19-May-09 22:06
Guffa19-May-09 22:06 
GeneralRe: Stack Overflow Pin
Denis J. González20-May-09 3:50
Denis J. González20-May-09 3:50 
AnswerRe: Stack Overflow Pin
Guffa22-May-09 13:02
Guffa22-May-09 13:02 
AnswerRe: Stack Overflow Pin
0x3c019-May-09 22:18
0x3c019-May-09 22:18 
GeneralRe: Stack Overflow Pin
Denis J. González20-May-09 3:48
Denis J. González20-May-09 3:48 
Questiondisabiling of menustrip in a child form i Pin
reddineni19-May-09 20:48
reddineni19-May-09 20:48 
AnswerRe: disabiling of menustrip in a child form i Pin
musefan19-May-09 22:55
musefan19-May-09 22:55 
QuestionUsing Digital Pen (or Optical Pen) in C#. Pin
hdv21219-May-09 18:42
hdv21219-May-09 18:42 
AnswerRe: Using Digital Pen (or Optical Pen) in C#. Pin
Member 39903293-Sep-09 20:59
Member 39903293-Sep-09 20:59 
GeneralRe: Using Digital Pen (or Optical Pen) in C#. Pin
hdv2125-Sep-09 7:57
hdv2125-Sep-09 7:57 
AnswerRe: Using Digital Pen (or Optical Pen) in C#. Pin
barankamali19-Jan-19 18:00
barankamali19-Jan-19 18:00 
Questionwhat are the dependencies or settings required for browser for supporting ManagementObject ? Pin
svt gdwl19-May-09 18:39
svt gdwl19-May-09 18:39 
QuestionAsyncCallback and multi threading Pin
yesu prakash19-May-09 18:39
yesu prakash19-May-09 18:39 
GeneralRe: AsyncCallback and multi threading Pin
harold aptroot19-May-09 23:32
harold aptroot19-May-09 23:32 
GeneralRe: AsyncCallback and multi threading Pin
yesu prakash20-May-09 0:44
yesu prakash20-May-09 0:44 

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.