newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Home
News
Tutorials
Reviews
Downloads
Professional Services
Forums
Newsletter
Blog
About us
Last forum posts
Home
::
Forums
::
Development
::
Symbian C++
User login
Username:
*
Password:
*
Create new account
Request new password
Featured pages
Configure your PC for Symbian development
Getting started with Symbian development
Symbian OS Error Codes
Common products UIDs
Nokia S60 SDK
Featured Software
NlMakesis
Y-Browser
Y-Tasks
Active users (last 30 days)
User
Score
eric
54
rbrunner
50
Andreas
44
sandeepmhptr
41
alh
30
more
Feeds
More feeds...
Help me please ! change " TReal32 " to " TInt " ! Thanks very much !
Login
to reply to this topic.
Thu, 2005-09-22 10:03
doctinh113
Joined: 2005-06-21
Forum posts: 107
Hi all!
Please help me to convert " TReal32 " to " TInt " .Thanks very much !
---------------------------------------------------- doctinh113114 ---------------------------------------
Login
or
register
to post in forums
Thu, 2005-09-22 13:18
joker_pl
Joined: 2004-06-06
Forum posts: 205
Re: Help me please ! change " TReal32 " to " TInt " ! Thanks ver
check Math class and its Int() function.
Best regards,
Michal Laskowski
 
Sat, 2005-11-19 11:41
navaron
Joined: 2003-10-10
Forum posts: 124
Re: Help me please ! change " TReal32 " to " TInt " ! Thanks ver
You need something like
TReal real = 3.14159;
TInt int=0;
TInt err = Math::Int(intPart, real);
if (err == KErrNone)
{
TBuf<10> buffer;
buffer.Format(_L("%d"), intPart);
RDebug::Print(buffer)
}
 
Login
to reply to this topic.
Forum posts: 205
Best regards,
Michal Laskowski
Forum posts: 124
TReal real = 3.14159;
TInt int=0;
TInt err = Math::Int(intPart, real);
if (err == KErrNone)
{
TBuf<10> buffer;
buffer.Format(_L("%d"), intPart);
RDebug::Print(buffer)
}