代码搜索:converting

找到约 1,282 项符合「converting」的源代码

代码结果 1,282
www.eeworm.com/read/275831/10793945

rb 06 - converting between strings and symbols.rb

:a_symbol.to_s # => "a_symbol" :AnotherSymbol.id2name # => "AnotherSymbol" :"Yet another symbol!".to_s # => "Yet another symbol!" #--- :dodecahedron.object_id #
www.eeworm.com/read/275831/10793974

rb 05 - converting between characters and values.rb

?a # => 97 ?! # => 33 ?\n # => 10 'a'[0] # => 97 'bad sound'[1] # => 97 #--- 97.chr # =>
www.eeworm.com/read/275831/10794318

rb 08 - converting between degrees and radians.rb

class Numeric def degrees self * Math::PI / 180 end end #--- 90.degrees # => 1.5707963267949 Math::tan(45.degrees) # => 1.0
www.eeworm.com/read/275831/10794341

rb 05 - converting between numeric bases.rb

0b100 # => 4 0o100 # => 64 0x100 # => 256 #--- "1045".to_i(10) # => 1045 "-1001001".to_i(2)
www.eeworm.com/read/275831/10794546

rb 06 - converting between time zones.rb

now = Time.now # => Sat Mar 18 20:15:58 EST 2006 now = now.gmtime # => Sun Mar 19 01:15:58 UTC 2006 now = now.localtime # => Sat Mar 18 20:15:58 EST 2006 #--- req
www.eeworm.com/read/364872/9889420

me read.me

program for converting intel .hex files to .v or .in files
www.eeworm.com/read/275831/10794266

rb 08 - converting and coercing objects to different types.rb

"4".to_i # => 4 4.to_s # => "4" Time.now.to_f # => 1143572140.90932 { "key1"
www.eeworm.com/read/275831/10794537

rb 08 - converting between time and datetime objects.rb

require 'date' class Time def to_datetime # Convert seconds + microseconds into a fractional number of seconds seconds = sec + Rational(usec, 10**6) # Convert a UTC offset measured
www.eeworm.com/read/127767/14336852

txt e082. converting a string to a number.txt

byte b = Byte.parseByte("123"); short s = Short.parseShort("123"); int i = Integer.parseInt("123"); long l = Long.parseLong("123"); float f = Float.parseFloat("123.4"); double