// MathFloor.cpp : メイン プロジェクト ファイルです。 #include "stdafx.h" using namespace System; int main(array ^args) { // 12.9999 以下の最大の整数を取得する double dValue = System::Math::Floor(12.9999); // 取得した値を表示する Console::WriteLine(dValue); //12 return 0; }