// MathRound.cpp : メイン プロジェクト ファイルです。 #include "stdafx.h" using namespace System; int main(array<System::String ^> ^args) { // 有効小数桁数が小数第 2 位になるように丸める double dValue = System::Math::Round(12.345, 2); // 偶数丸め (JIS 丸め) した結果を表示する Console::WriteLine(dValue); return 0; }