academyのLv.3のレッスン1に関する内容です。
小数点を含んだ数値を、整数として認識し入力する…という作業をしたいです。
PDFには、
「入力データが有効か、また各値が数値か否かのチェックを行います。 」
「Double.TryParse メソッドを使用し、結果を Double 型の変数として保存します。」
とありますが、使用法がイマイチ分からないです…。
大前提として、上記メソッドを使用して、整数化する、という認識は合っているのでしょうか?
1:全ての数値に小数点があるわけではない
2:整数のものもある
3:エクセル上の数値である
4:orchestratorのキューに一度格納する作業を含めたい
5:デモアプリに登録していく
6:その内、1000以上の価格(単位は円?)は登録対象から除外
と考えています。
一度キューに格納したものを、加工(整数化)出来るのでしょうか?
それとも、整数化した数値(文字列)を別媒体(エクセル等)に保存し、それをキューに格納…の方が良いのでしょうか?こちらのほうが、確実そうですが、二度手間っぽい気がしてるのですが…。
Hello,
This is about academy Lv3(Advanced course), Lesson-1.
I want to change text with comma to without comma
For example…
509.2 change to 509
They say “You need use method of Double.TryParse.”
But I don’t understand how to use this method.
I think they mean “To use this method, and exchange to without-comma.”
Is it right?
1:I don’t have every number with comma.
2:Some have no comma.
3:I have data from the excel file.
4:First, I wat to store to queue of orchestrator.
5:Then, I want to resist to demo-application the data.
6:But over 1,0000, I don not want to resist.
…I want to do like this…
Can I exchange variable,already srored?=A
Or,should I exchange data to other file(for example new excel file) and after finish it,store to queue?=B
I think Pattern-B is very bored but it’s very certain way.
I put excel file for database.
And also I put PDF file for guideline.
Please help me…
Transactions.xlsx (10.6 KB)
UiDemo自動化の手引き.pdf (1.4 MB)