wengerag / structured-text-utilities Goto Github PK
View Code? Open in Web Editor NEWUtilities for Structured Text (IEC 61131-3)
License: MIT License
Utilities for Structured Text (IEC 61131-3)
License: MIT License
internal usage of number's string representation
Rounding of small numbers such as 0.000020741
fail due to unexpected usage of scientific notation in internal string conversion behaviour (e.g. to 2.074100e-04
).
To Reproduce
call ROUND_LREAL or ROUND_REAL with a small number (e.g. 0.000020741
) and with parameter 5
Expected behavior
rounding 0.000020741
with 5 digits should return 0.00002
There are some situations where you need to communicate to third-party systems which uses hashes (e.g. MD5, SHA1, etc.) to check the integrity of sent data.
The new crypto utility would provide functions like CREATE_HASH
which accepts a byte array and a hash algorithm as parameters.
First function to refactor I want DATE_TO_PARTS
. It looks like there are huge misconceptions. There are FOR
cycle for years and in every year 12 FOR
cycles for each month. That is quite a load.
This function does not return an array, and I do not see reasons to have nested cycle. I can get rid of it completely and greatly optimize this function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.