This time, I made a calculator to calculate the shell mound circle (shell mound rate) for free. I managed to get over 100 downloads, so I'd like to keep track of what I did.
Shell mound rate Siamese's expected monthly income of 10,000 yen and the average monthly income of the same generation of 350,000 yen are the prices that Siamese can experience. Example: Cocoa drink (Van Houten) 130 yen (Japanese yen) → 4,550 (shell mound) yen
Quoted from Syamu_game @ Wiki
One day, on the way home from a local drug store "Ah, I'm free. Yeah! Make an app for the first time in a long time!" I opened my computer, but I turned to the side street and saw re-editing unemployed at NicoNico. Then, in the video, there is a story called Kaizuka Rate. When I looked it up, I found that it was Japanese Yen x35, so I decided to make it immediately.
For the time being, I decided to make a calculator that calculates the numbers put in it using EditText. From the Japanese yen to the Kaizuka yen, the problem occurred immediately! that is...
I knew that a small number of calculations in Java could be done using Big Decimal, but I was quite troubled because I didn't know how to write it. By the way, I write this.
MainActivity.java
BigDecimal k = new
BigDecimal(kaizuka.getText().toString());
BigDecimal big3 = new BigDecimal("35");
double j = k.divide(big3, 3, ROUND_HALF_UP).doubleValue();
When I pressed the calculation button without entering anything, it was forcibly terminated, so I added ~~ I had it added ~~. (I can't do anything by myself as usual) Thank you very much.
MainActivity.java
public void kaizuka(View view) {
jpy = findViewById(R.id.jpy);
//This is the operation when you press the calculation button without entering anything.
if(jpy.getText().toString().equals("")){
Toast.makeText(this,"Just enter something.",Toast.LENGTH_SHORT).show();
}else {
BigInteger j = new BigInteger(jpy.getText().toString());
BigInteger big3 = new BigInteger("35");
double k = j.multiply(big3).doubleValue();
I haven't become a millionaire or a celebrity, but I've increased the number of followers by about 20. In addition, I was able to finally reach 100 downloads by spreading the acquaintances of Gugutasu and posting an introduction video to Nico Nico myself. Thanks to those who downloaded it! By the way, the introductory video was ranked 8th in the Nico Nico Engineering Department ranking for about 3 days.
I feel that making this app was a success for me. Thanks to this app, I feel that I was able to not only create topics, but also to meet various people and acquire various knowledge and skills. Thanks to the many people involved in this app! We look forward to your continued support of Kaizu Calc!
GitHub Repository Author's Google+ [Google+ for those who made various corrections (Tomohiro)](https://plus.google.com/u/0/+%E3%81%8B%E3%81%8A%E3%82% 8B% E3% 82% 93) Google+ of the person who spread (Amemaru) Install here
Recommended Posts