Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

junmoney83

macrumors newbie
Original poster
Mar 3, 2010
20
0
float jung = firstButton.frame.origin.x

when i do , i can see 6.0939393-e from jung variable.

how can i save jung variable as float?


and when i do below,
jung can save 0...

NSString *jung = [NSString alloc]
initwithformat: @"%.2f", firstButton.frame.origin.x];
 
Your question does not make sense. What are you trying to do? What do you mean by save ? and what do you mean by "save 0"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.