当前位置: 首页 > news >正文

想做个网站不知道怎么做wordpress分类权限

想做个网站不知道怎么做,wordpress分类权限,大展建筑人才网,网站建设郑州jwensh2023.12.20 使用背景 对 web3 相关的数据进行计算的时候#xff0c;需要进行大小加减计算#xff0c;UI 自动化过程需要将数据转为自然数#xff1b;页面获取的数据会有千分位 、高精度(18位) /*** Compares this {code BigDecimal} with the specified* {code BigDe… jwensh2023.12.20 使用背景 对 web3 相关的数据进行计算的时候需要进行大小加减计算UI 自动化过程需要将数据转为自然数页面获取的数据会有千分位 、高精度(18位) /*** Compares this {code BigDecimal} with the specified* {code BigDecimal}. Two {code BigDecimal} objects that are* equal in value but have a different scale (like 2.0 and 2.00)* are considered equal by this method. This method is provided* in preference to individual methods for each of the six boolean* comparison operators ({literal }, ,* {literal }, {literal }, !, {literal }). The* suggested idiom for performing these comparisons is:* {code (x.compareTo(y)} lt;iop/igt; {code 0)}, where* lt;iop/igt; is one of the six comparison operators.** param val {code BigDecimal} to which this {code BigDecimal} is* to be compared.* return -1, 0, or 1 as this {code BigDecimal} is numerically* less than, equal to, or greater than {code val}.*/public int compareTo(BigDecimal val) {// Quick path for equal scale and non-inflated case.if (scale val.scale) {long xs intCompact;long ys val.intCompact;if (xs ! INFLATED ys ! INFLATED)return xs ! ys ? ((xs ys) ? 1 : -1) : 0;}int xsign this.signum();int ysign val.signum();if (xsign ! ysign)return (xsign ysign) ? 1 : -1;if (xsign 0)return 0;int cmp compareMagnitude(val);return (xsign 0) ? cmp : -cmp;}比较方法 与开发讨论过后端业务中比较常用的是 BigDecimalBigDecimal 类提供 compareTo() 方法来比较两个数的大小 例如a b 返回0 ; a b返回-1 ; a b返回1通过这三种比较返回的结果我们还可以比较 a ! b、a b和a b这三种情况。 import java.math.BigDecimal;public class Web3WalletTest {public static void main(String[] args) {BigDecimal a new BigDecimal(213.003);BigDecimal b new BigDecimal(213.004);BigDecimal c new BigDecimal(213.003);/**** 大于 和 小于*/// ab -- falseboolean b1 a.compareTo(b) 1;System.err.println(b1: b1);if (a.compareTo(b) 1)System.out.println(a b);// ab -- trueboolean b2 a.compareTo(b) -1;System.err.println(b2: b2);if (a.compareTo(b) -1)System.out.println(a b);/**** 大于等于*/// ab -- falseboolean b3 a.compareTo(b) -1;System.err.println(b3: b3);if (a.compareTo(b) ! -1)System.out.println(a b);// ac -- trueboolean b4 a.compareTo(c) -1;System.err.println(b4: b4);/**** 小于等于*/// ab -- trueboolean b5 a.compareTo(b) 1;System.err.println(b5: b5);if (a.compareTo(b) ! 1)System.out.println(a b);// ac -- trueboolean b6 a.compareTo(c) 1;System.err.println(b6: b6);/**** 等于*/// ac -- trueboolean b7 a.compareTo(c) 0;System.err.println(b7: b7);if (a.compareTo(b) 0)System.out.println(a b);if (a.compareTo(b) ! 0)System.out.println(a ! b);} }用例里使用的方式 BigDecimal btteBalance new BigDecimal(walletPage.getTokenBalance(3).getText().replace(,, )); Assert.assertTrue(btteBalance.compareTo(new BigDecimal(0)) -1);
http://www.w-s-a.com/news/754187/

相关文章:

  • 阳西住房和城乡规划建设局网站长沙网站seo技巧
  • 长沙知名网站推广手机画设计图软件
  • 顺德公司做网站自己有网站怎么优化
  • 南京网站开发南京乐识专业外贸流程知乎
  • 盐田区住房和建设局网站分类网站有哪些
  • 建一个团购网站WordPress文章字号设置
  • 做漂亮的网站东营网站seo
  • 网站开发摊销做设计哪个网站可以接单
  • 惠州h5网站建设建设公司网站报价
  • 做网站多少钱 优帮云嘉兴五县两区网站建设
  • 三亚旅游网站策划书企业网站建设的定位
  • 网站建设工作台账网站建设的实验结论
  • 商业网站建设平台制作软件的软件
  • 本地网站开发wordpress页面关键词和描述
  • 微网站 合同软件开发培训方案
  • 怎么做淘宝客网站备案广告公司图片大全
  • 微信小程序展示网站建设多少钱做网站用什么软件初二
  • 瀑布流资源网站模板打码网站建设
  • wordpress 支付宝打赏网站视觉优化的意义
  • 建设网站需要几个文件夹永久免费内存大服务器
  • 可信赖的手机网站建设wordpress 显示摘要
  • 谁给我一个企业邮箱认证wordpress优化攻略
  • 建站软件免费版下载涿州做网站的
  • html5网站开发西安哪家网站建设公司好
  • 怎么做网站赚广州番禺区是富人区吗
  • 服装网站推广方案戴尔网站建设成功
  • 手机网站布局国外可以用什么网站做问卷
  • 手机建网站网店logo设计图片免费
  • 装修网站有哪些wordpress外网访问错误
  • 个人做电影网站服务器放国外安全吗建设通app