请帮助我在这种情况下

编程入门 行业动态 更新时间:2024-10-12 01:28:13
本文介绍了请帮助我在这种情况下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

让我说我有n个公式来计算不同原材料的数量 哪个我存储在数据库中 和不同类型的配置文件 ( 配置文件包括原材料配方取决于让我们说配置周长的高重量 内部重量等 Formule我存储为 W×2或H×2) 计算 我评估表达式 但是对于n个n个不同配方原材料的配置文件 我不能用的时候 什么是最好的选择? 这个场景

Lets say I have n number of formula to calculate qty for different raw materials Which i Store in database And different type of profiles ( Profile include raw materials formula depend on lets say hight weight of profile perimeter Internal weight etc Formule I am storing as W×2 or H×2) To calculate I am evaluate expression But for n number of profile for n number of raw materials with different formula I cant use case when What will be best options to proceed With this scenario

推荐答案

如果您将公式作为文本存储在数据库中,那么请查看数学解析器,例如 Math Parser .NET C# [ ^ ] If you are storing the formulae on the database as text then look at math parsers e.g Math Parser .NET C#[^]

更多推荐

请帮助我在这种情况下

本文发布于:2023-11-12 13:14:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581605.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:在这种情况下

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!