小编big*_*shr的帖子

浮点精度误差

我对下面的LISP表达式有疑问.在对浮点数求和时,存在浮动精度错误.

CL-USER> (+ -380 -158.27 -35.52)

Actual:   -573.79004
Expected: -573.79000
Run Code Online (Sandbox Code Playgroud)

请建议我如何在LISP中实现预期的结果(我正在使用Lispworks).

lisp common-lisp floating-accuracy lispworks

5
推荐指数
2
解决办法
1076
查看次数

在添加Entity Framework Core(1.1.0)迁移时,dotnet exec需要托管的.dll或.exe扩展

错误信息:

PM> Add-Migration InitialDatabase
dotnet exec needs a managed .dll or .exe extension. The application specified was 'C:\Users\xxxxxx\documents\visual studio 2017\Projects\TheWorld\src\TheWorld\bin\Debug\netcoreapp1.0\TheWorld.runtimeconfig.json'
Process finished with non-zero exit code
PM> 
Run Code Online (Sandbox Code Playgroud)

Visual Studio版本:2017 RC

项目依赖性:

项目依赖性

错误截图: 错误截图

c# entity-framework-core asp.net-core-mvc visual-studio-2017

3
推荐指数
1
解决办法
1504
查看次数