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"]];

                

            }

            

  • 相关阅读:
    C#中对文件进行选择对话框打开和保存对话框进行复制
    二、RabbitMQ操作
    二、TortoiseSVN 合并、打分支、合并分支、切换分支
    一、Google开发者工具功能页面截图
    一、RabbitMQ安装与测试连接
    二、jquery Try{}catch(e){}
    ViewMode
    三、MVC_JsonResult类型
    随笔集
    五、SQL Server Profiler追踪工具
  • 原文地址:https://www.cnblogs.com/gzz2016/p/6064490.html
Copyright © 2011-2022 走看看