//二进制转十进制
- (NSString*)toDecimalSystemWithBinarySystem:(NSString*)binary
{
intll =0;
inttemp =0;
for(inti =0; i < binary.length; i ++)
{
temp = [[binarysubstringWithRange:NSMakeRange(i,1)]intValue];
temp = temp *powf(2, binary.length- i -1);
ll += temp;
}
NSString* result = [NSStringstringWithFormat:@"%d",ll];
returnresult;
}