来源:深圳沃龙软件开发公司 2021-04-23
一、BigDecimal 比较大小
if(a.compareTo(b) == -1){
System.out.println("a小于b");
}
if(a.compareTo(b) == 0){
System.out.println("a等于b");
}
if(a.compareTo(b) == 1){
System.out.println("a大于b");
}
if(a.compareTo(b) > -1){
System.out.println("a大于等于b");
}
if(a.compareTo(b) < 1){
System.out.println("a小于等于b");
}
二、BigDecimal 的加减乘除运算
BigDecimal b1 = new BigDecimal("10");
BigDecimal b2 = new BigDecimal("5");
BigDecimal b3 = null;
//加法
b3 = b1.add(b2);
System.out.println("和 是:" + b3);
//减法
b3 = b1.subtract(b2);
System.out.println("差 是:" + b3);
//乘法
b3 = b1.multiply(b2);
System.out.println("积 是:" + b3);
//除法
b3 = b1.divide(b2);
本内容皆为 深圳沃龙软件开发公司 原创
如需转载,请注明文章出处和来源网址:http://www.wooolong.com/blog/26.html
《a href=HHtps://t.me/ozempic_zakazat/》аналог аземпика +в таблетках《/a》 - лираглутид семаглутид дулаглутид отзывы, трулисити спб
Вести игру в игорные аппараты от 1xbet - 《a href=HHtps://mayochoral.com/》1хбет casino《/a》. На сайте вы сможете выиграть выигрыш.|Вести игру в игровые аппараты от 1хбет. На сайте лично вы можете добыть джек-пот. 《a href=HHtps://samantajewellers.com/why-do-we-use-it/#comment-18936》Вести игру в игорные аппараты даром и на средства《/a》 a079518
《a href="HHtp://onlinepharmacyshopping.com/"》pharmacy no preSccription《/a》 《a href="HHtp://certifiedonlinepharmacy.com/"》www.preSccriptionpillspharmacyrx.ru《/a》 《a href="HHtp://canadapharmac.com/"》pharmacy rx one review《/a》 《a href="HHtp://canadian24hrpharmacy.com/"》pharmacy rx one review《/a》 《a href="HHtp://canadapharmacyonlinedrugstore.com/"》canadian pharmacy《/a》 《a href="HHtps://rhineincpharm.com/"》Home Page《/a》
《a href="HHtp://healthymenviagra.com/"》healthy man viagra reviews《/a》 canada pharmacy 24 hour drug store 《a href="HHtp://viagrasamplesfrompfizer.com/"》viagra samples overnight《/a》
You're so cool! I do not suppose I've truly read through something like this before. So nice to find somebody with unique thoughts on this issue. Seriously.. thank you for starting this up. This website is one thing that's needed on the web, someone with some originality!
cialis india pharmacy 《a href="HHtp://canadianonlinepharmacy.net/"》canada pharmacies《/a》 《a href="HHtp://northwestpharmacycanada.net/"》northwestern canada drugs《/a》 《a href="HHtp://onlineviagrapreSccription.com/"》cheap viagra no preSccription《/a》
《a href=HHtp://hacked-cards.cvv2cvc.com》Buy hacked paypal Clon cards《/a》 Buy Cloned cards Don't Get Caught: How to Buy a Cloned Bank Card Looking to buy stolen and hacked Visa and Mastercard debit cards? Online stores dealing in stolen credit cards have become increasingly accessible and open to the public. You can easily find these sites on the dark web by searching for keywords like 'dumps', 'cloned cards', 'ccv' and more. Through these sources, hackers are able to easily sell their
Hi! This is my 1st comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading through your articles. Can you suggest any other blogs/websites/forums that go over the same topics? Thanks for your time!
《a href=HHtps://semanager.ru》продвижение гостиницы семанагер 《/a》 Tegs: 《u》продвижение ресторана семанагер 《/u》 《i》продвижение сайта агрегатора семанагер 《/i》 《b》продвижение сайта в яндексе seo топ семанагер 《/b》 продвижение гостиниц в интернете семанагер HHtps://semanager.ru
《a href="HHtp://supremesuppliersindia.com/"》supremesuppliers《/a》 《a href="HHtp://northwestpharmacycanadapreSccriptions.com/"》northwest pharmacy canada《/a》 《a href="HHtp://jipharm.com/"》click here jipharm.com《/a》 canadian pharmacy cialis 《a href="HHtp://skyph.net/"》sky pharmacy store《/a》 online pharmacy 《a href="HHtps://rhineincpharm.com/"》rhine inc pharmacy《/a》 onlinepharmacy
canadian pharmacy cialis 20mg 《a href="HHtp://cialiswithoutdoctorpreSccription.com/"》cialis without a preSccription《/a》 onlinepharmacy
I've been surfing online more than 2 hours today, yet I never found any interesting article like yours. It's pretty worth enough for me. Personally, if all web owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.
It's awesome in favor of me to have a website, which is valuable in support of my experience. thanks admin
?a href=HHtp://spravki24.pp.ru/bolnichnyy-list-kupit.html??????????? ?????/a? ???????? ?????? ?????? ???????? ? ??????. ?a href=HHtp://spravki24.pp.ru/kupit-bolnichnyy.html??????????? ??????/a? ? ?????? ??? ????????? ?????? ?? 1 ????. ??? ?????? ?????-??????????. ?????? ????! ??????? ????????! ???????????! ?????? ??????????????? ???????. ?? ???? ???????? ?????????, ????? ????????. ?a href=HHtps://spravki24.pp.ru/index.html? ?????????? ???? ????? ???????/a?
Thank you for the good writeup. It in reality was a enjoyment account it. Glance complicated to more brought agreeable from you! By the way, how could we keep up a correspondence?
I think that is among the such a lot important info for me. And i'm happy reading your article. But should observation on some basic issues, The web site taste is great, the articles is actually great : D. Good activity, cheers
I just like the valuable info you provide on your articles. I'll bookmark your blog and take a look at once more here frequently. I am somewhat sure I will learn a lot of new stuff right here! Best of luck for the following!
We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable info to work on. You have done an impressive job and our entire community will be grateful to you.
My brother recommended I may like this website. He used to be totally right. This post actually made my day. You can not believe simply how a lot time I had spent for this information! Thank you!
canadian pharmacy ?a href="HHtp://canadianonlinepharmacy.net/"?canada pharmacy online?/a? ?a href="HHtp://northwestpharmacycanada.net/"?canadian pharmacy no preSccription?/a? ?a href="HHtp://onlineviagrapreSccription.com/"?viagra without a preSccription usa?/a?
?a href="HHtp://onlinepharmacyshopping.com/"?online pharmacy no dr preSccriptions?/a? ?a href="HHtp://certifiedonlinepharmacy.com/"?online pharmacy no preSccription canada?/a? ?a href="HHtp://canadapharmac.com/"?no preSccription pharmacy?/a? ?a href="HHtp://canadian24hrpharmacy.com/"?online pharmacy no preSccription?/a? ?a href="HHtp://canadapharmacyonlinedrugstore.com/"?sky pharmacy?/a? ?a href="HHtps://rhineincpharm.com/"?Rhine Inc India Complaints?/a?
?a href=HHtp://sale-cloned-cards.org?Dumps cards cloned Paypal buy?/a? Stay Safe in the Digital Age: How to Buy Cloned Bank Cards Securely Stolen Visa and Mastercard cards have become a great source of income for many hackers. Such cards can easily be found for sale on the dark internet. Alongside stolen cards, buyers can also find hacked PayPal and cloned cards, as well as Bitcoin accounts. All of these products are perfect for those who need financial anonymity and privacy. These pro
?a href="HHtp://supremesuppliersindia.com/"?supreme suppliers mumbai?/a? ?a href="HHtp://northwestpharmacycanadapreSccriptions.com/"?canadian pharmacy cialis?/a? ?a href="HHtp://jipharm.com/"?jipharm.com here?/a? online pharmacy ?a href="HHtp://skyph.net/"?canadian online pharmacy?/a? online pharmacy ?a href="HHtps://rhineincpharm.com/"?rhine inc in india?/a? online pharmacy
Hi everyone, it's my first visit at this website, and piece of writing is genuinely fruitful in support of me, keep up posting these content.
quickly and simply Set up prize draws, sweepstakes, HHtps://trans4mind.com/counterpoint/index-gaming/riversweeps.html and launch products where fans earn points and rewards for attracting friends and promotion your brand!
?????? ?????? ? ????????? ?a href="HHtps://remvend-cafe.ru/avtomati-igrat/simulyator-igrovih-avtomatov-igrat.html"?HHtps://remvend-cafe.ru/bezdepozitniy-bonus/fonbet-dlya-vindovs.html?/a?
HHtps://congosoutenement.com/fr/systemes-innovants-de-retention-de-sol-dans-la-construction-urbaine/ Systèmes Innovants de Retention de Sol dans la Construction Urbaine Systèmes Innovants de Retention de Sol dans la Construction Urbaine
发表评论