From: Josh Cheek Date: 2011-10-24T22:04:55+09:00 Subject: Re: ASCII character help! --20cf3002584c9473d804b00b11fa Content-Type: text/plain; charset=ISO-8859-1 On Mon, Oct 24, 2011 at 3:16 AM, Ray DarkScythe < scytherdarkscyther@yahoo.com> wrote: > Thanks for replying Alan, also for the help and pointers.... > ----------- > Alan Schwarz wrote: > When you learn about arrays, you'll learn about a method to sort it > automatically. :-) > ----------- > are you talking about the .sort method, it's in the lesson in the array > section > I didn't use it because the lesson is conditional, I assume there is a > way to write it automatically without using .sort method... using only > the conditional topic to arrange automatically. > > ---------- > Alan Schwarz wrote: > "Lies" does not mean deception or falsehood here; "lies" means "is > located". It is asking where the "?" is located in the ASCII table. Try > running "?" < "0" on irb and let your truth value be your guide. > ---------- > I already did that it say false, what will I do now, now I know it > false? > how do I find the location.here is the table chart of "?" ascii. > > Binary:011 1111 Oct:077 Dec:63 Hex:3F Glyph:? > > I am confuse about the location. > > Thanks for people answering this question > > -- > Posted via http://www.ruby-forum.com/. > > You can use String#ord and Fixnum#chr to convert between ascii value and character. "0".ord # => 48 48.chr # => "0" --20cf3002584c9473d804b00b11fa--