Thread Rating:
  • 488 Vote(s) - 2.85 Average
  • 1
  • 2
  • 3
  • 4
  • 5
int型→string型のキャストについて
08-11-2011, 08:01 PM, (This post was last modified: 08-11-2011, 08:06 PM by hokada.)
#3
RE: int型→string型のキャストについて
私は、xxx & ""を使いますね。

ちなみに、formatよりこっちの方が相当高速です。ただ、コードが汚なくなるかもしれないですが・・。

Code:
def xxx:int = 123
def s1 = xxx & ""
def s2 = {format "%d", xxx}
def s3 = {String xxx}
|| s1, s2, s3は一緒の文字列。



Messages In This Thread
RE: int型→string型のキャストについて - by hokada - 08-11-2011, 08:01 PM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('203')