zoukankan      html  css  js  c++  java
  • 1115 视频的阅读数目 更改

            NSString *readStr=[NSString stringWithFormat:@"%@", [newsLIST objectForKey:@"readnum"]];

            NSString  *readDa = readStr;

            if (readStr.length>=5) {

                NSInteger redNum = [readStr integerValue];

                NSString  *one,*two;

                NSInteger  onee = redNum/10000;

                one = [NSString stringWithFormat:@"%zd",onee];

                

                NSInteger  twoo = redNum%10000;

                twoo = twoo/1000;

                two = [NSString stringWithFormat:@"%zd",twoo];

                if (one.length>1) {

                    readDa=[NSString stringWithFormat:@"%@",one];

      

                }else{

                    readDa=[NSString stringWithFormat:@"%@.%@",one,two];

     

                

                }

                

            }else{

                readDa=[NSString stringWithFormat:@"%@", [newsLIST objectForKey:@"readnum"]];

                

            }

            

  • 相关阅读:
    Linux下安装漏洞扫描工具Nessus
    【译】使用OpenVAS 9进行漏洞扫描
    MD5小彩虹表
    获取某个版本软件存在的漏洞信息
    【译】使用chage来管理Linux密码过期时间的七个例子
    [转]Centos 安装Sublime text 3
    Nessus扫描策略
    Nginx使用笔记
    SSH 公钥登录
    MySQL加密
  • 原文地址:https://www.cnblogs.com/gzz2016/p/6064490.html
Copyright © 2011-2022 走看看