Skip to content

Commit

Permalink
1.3.5 修复SetFloat转换位数的错误
Browse files Browse the repository at this point in the history
* 修复SetFloat转换位数的错误
int -> long
  • Loading branch information
LorisYounger committed May 11, 2022
1 parent b150f3b commit 910bcaf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LinePutScript.Core/Line.cs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ public double GetFloat(string subName, double defaultvalue = default)
/// </summary>
/// <param name="subName">用于定义匹配的名称</param>
/// <param name="value">储存进sub的double(long)值</param>
public void SetFloat(string subName, double value) => FindorAdd(subName).InfoToInt64 = (int)(value * 1000000000);
public void SetFloat(string subName, double value) => FindorAdd(subName).InfoToInt64 = (long)(value * 1000000000);

/// <summary>
/// 获得DateTime属性的sub
Expand Down
2 changes: 1 addition & 1 deletion LinePutScript.Core/LpsDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ public double GetFloat(string lineName, double defaultvalue = default)
/// </summary>
/// <param name="lineName">用于定义匹配的名称</param>
/// <param name="value">储存进line的double(long)值</param>
public void SetFloat(string lineName, double value) => FindorAddLine(lineName).InfoToInt64 = (int)(value * 1000000000);
public void SetFloat(string lineName, double value) => FindorAddLine(lineName).InfoToInt64 = (long)(value * 1000000000);

/// <summary>
/// 获得DateTime属性的line
Expand Down
2 changes: 1 addition & 1 deletion LinePutScript/Line.cs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ public double GetFloat(string subName, double defaultvalue = default)
/// </summary>
/// <param name="subName">用于定义匹配的名称</param>
/// <param name="value">储存进sub的double(long)值</param>
public void SetFloat(string subName, double value) => FindorAdd(subName).InfoToInt64 = (int)(value * 1000000000);
public void SetFloat(string subName, double value) => FindorAdd(subName).InfoToInt64 = (long)(value * 1000000000);

/// <summary>
/// 获得DateTime属性的sub
Expand Down
2 changes: 1 addition & 1 deletion LinePutScript/LpsDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ public double GetFloat(string lineName, double defaultvalue = default)
/// </summary>
/// <param name="lineName">用于定义匹配的名称</param>
/// <param name="value">储存进line的double(long)值</param>
public void SetFloat(string lineName, double value) => FindorAddLine(lineName).InfoToInt64 = (int)(value * 1000000000);
public void SetFloat(string lineName, double value) => FindorAddLine(lineName).InfoToInt64 = (long)(value * 1000000000);

/// <summary>
/// 获得DateTime属性的line
Expand Down
Binary file added nuget/LinePutScript.1.3.5.nupkg
Binary file not shown.

0 comments on commit 910bcaf

Please sign in to comment.