Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
double 値を文字列の前に符号 (正の場合は "+"、負の場合は "-") があり、末尾にゼロがないようにフォーマットする必要があります。例えば:
Input: 1.5 Output: "+1.5" Input: 1.0 Output: "+1" Input: -123.123321 Output: "-123.123321"