1
0
This commit is contained in:
2026-01-29 19:42:43 +03:00
parent e3be576ce1
commit de89a5bcc7
2 changed files with 38 additions and 1 deletions

33
first/SplitNumber.cs Normal file
View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace first
{
public class SplitNumber
{
public double First
{
get;
private set;
}
public double Second
{
get;
private set;
}
public double Value
{
get { return First + Second; }
set
{
First = Math.Truncate(value);
Second = value - First;
}
}
}
}