apex

1 件の記事

2014

Apexで整数同士の割り算で小数まで表示する方法

型付けの強い言語を触るのは久しぶりな僕です。 PHPerでまじさーせん・・・w Apexで整数同士の割り算するときってこんな感じかと思ってた訳ですよ。 Integer a = 7; Integer b = 5; Decimal d = Decimal.valueOf(a / b); System.debug(d); で…

Photo: Jaz. Mine / Unsplash LicensePhoto: Se. Tsuchiya / Unsplash LicensePhoto: Sergio / Unsplash LicensePhoto: Robert Bant / Unsplash LicensePhoto: Zhi Xuan Hew / Unsplash License