|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.skt.m.MathFP
MathFP Ŭ·¡½º´Â ºÎµ¿ ¼Ò¼ýÁ¡ ¿¬»êÀ» Ŭ·¡½º ·¹º§·Î Áö¿øµÈ´Ù. CLDC¿¡¼ float³ª doubleÇüÀ» Áö¿øÇÏÁö ¾Ê±â ¶§¹®¿¡ MathFP¿¡¼´Â long ÇüÀ» double Çü µ¥ÀÌÅ͸¦ ´ã´Âµ¥ »ç¿ëÇÑ´Ù. ÆíÀÇ»ó double Çü µ¥ÀÌÅ͸¦ ´ã°í ÀÖ´Â longÇü ŸÀÔÀ» ÀÌ ¹®¼¿¡¼´Â double À̶ó°í ÁöĪÇÑ´Ù.
¿¹¸¦ µé¾î 2.112 + 3.145 ¿Í °°Àº ¿¬»êÀº MathFP Ŭ·¡½º¿¡¼ ´ÙÀ½°ú °°ÀÌ Ç¥ÇöµÉ ¼ö ÀÖ´Ù.
MathFP.toStringLF(MathFP.add( MathFP.parseFPString("2.112"),MathFP.parseFPString("3.145"))));
Field Summary | |
static long |
E
ÀÚ¿¬·Î±× ¹Ø¼öÀÇ double Ç¥Çö |
static long |
MAX_VALUE
doubleÀÇ ÃÖ´ë°ª |
static long |
MIN_VALUE
doubleÀÇ ÃÖ¼Ò°ª |
static long |
PI
ÆÄÀÌÀÇ double°ª |
Method Summary | |
static long |
abs(long f)
double Àý´ë°ª |
static long |
acos(long r)
double acos |
static long |
add(long a,
long b)
double ´õÇϱâ |
static long |
asin(long r)
double asin |
static long |
atan(long r)
double atan |
static long |
cos(long r)
double cos |
static long |
divide(long a,
long b)
double ³ª´©±â |
static long |
exp(long f)
doubleÀÇ ¸èÁö¼ö |
static long |
log(long f)
doubleÀÇ ÀÚ¿¬ ·Î±× |
static long |
max(long a,
long b)
double ÃÖ´ë°ª |
static long |
min(long a,
long b)
double ÃÖ¼Ò°ª |
static long |
multiply(long a,
long b)
double °öÇϱâ |
static long |
parseFP(long f)
Á¤¼ö¸¦ double·Î º¯È¯ÇÑ´Ù. |
static long |
parseFPString(com.skt.m.String s)
¹®ÀÚ¿·Î Ç¥ÇöµÈ ºÎµ¿Çü »ó¼ö¸¦ double·Î º¯È¯ÇÑ´Ù. |
static long |
pow(long b,
long e)
double Á¦°ö |
static long |
round(long f)
¹Ý¿Ã¸²ÇÑ´Ù. |
static long |
sin(long r)
double sin |
static long |
sqrt(long f)
double Á¦°ö±Ù |
static long |
sub(long a,
long b)
double »©±â |
static long |
tan(long r)
double tan |
static long |
toLong(long f)
doubleÀ» Á¤¼ö·Î º¯È¯ÇÑ´Ù. |
static com.skt.m.String |
toStringE(long f)
doubleÀ» Áö¼ö Ç¥ÇöÀÇ ¹®ÀÚ¿·Î º¯È¯ÇÑ´Ù. |
static com.skt.m.String |
toStringLF(long f,
int precision)
doubleÀ» 10Áø Ç¥±â ¹®ÀÚ¿·Î º¯È¯ÇÑ´Ù. |
Field Detail |
public static final long MAX_VALUE
public static final long MIN_VALUE
public static final long E
public static final long PI
Method Detail |
public static long parseFP(long f)
MathFP.parseLong(1024);
f
- Á¤¼öpublic static long parseFPString(com.skt.m.String s)
public static com.skt.m.String toStringLF(long f, int precision)
f
- doubleprecision
- ¼Ò¼ýÁ¡ ÀÌÇÏ ¸îÀÚ¸®±îÁö Ç¥ÇöÇÒ °ÍÀΰ¡¸¦ Á¤ÇØÁÜpublic static com.skt.m.String toStringE(long f)
f
- doublepublic static long round(long f)
f
- doublepublic static long toLong(long f)
f
- doublepublic static long divide(long a, long b)
a
- doubleb
- doublepublic static long multiply(long a, long b)
a
- doubleb
- doublepublic static long add(long a, long b)
a
- doubleb
- doublepublic static long sub(long a, long b)
a
- doubleb
- doublepublic static long abs(long f)
f
- doublepublic static long sqrt(long f)
f
- doublepublic static long sin(long r)
r
- doubleÇüÀÎ ¶óµð¾È °ªpublic static long cos(long r)
r
- doubleÇüÀÎ ¶óµð¾È °ªpublic static long tan(long r)
r
- doubleÇüÀÎ ¶óµð¾È °ªpublic static long min(long a, long b)
a
- doubleb
- doublepublic static long max(long a, long b)
a
- doubleb
- doublepublic static long asin(long r)
r
- doubleÇüÀÎ ¶óµð¾È °ªpublic static long acos(long r)
r
- doubleÇüÀÎ ¶óµð¾È °ªpublic static long atan(long r)
r
- doubleÇüÀÎ ¶óµð¾È °ªpublic static long exp(long f)
f
- doublepublic static long log(long f)
f
- doublepublic static long pow(long b, long e)
b
- ¹Ø¼öe
- Áö¼ö
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |