by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Standards
Introduced first in SolidGeometry 4.9, Creation date: 2020-07-14, Last change: 2025-09-14
See Also: DIN13
, DIN20273
, DIN336
, DIN433
, DIN464
, DIN4AMfitting
, DIN7991
, DIN912
, DIN913
, DIN934
, DIN965
, DIN985
TL=DINfindinTab(M,Tab,[takelarg])
M: | Scalar to find in Tab | |
Tab: | Table with M as first col; Table name is important | |
takelarg: | if true nearest larger is selected; default is true |
TL: | Table row |
DIN433=[ 1.0 1.1 2.5 0.3; 1.2 1.3 3.0 0.3];
DINfindinTab(1.1,DIN433)
This function, DINfindinTab, is designed to search for a specific scalar value within a given table and return the corresponding row. It is part of the SolidGeometry library and was introduced in version 4.9.
Tab.M in the first column. The name of the table is significant for error messages.Tab that corresponds to the scalar M or the nearest value based on the takelarg parameter.takelarg parameter using the getfuncparams function, which defaults to true if not specified.Tab.M. If a match is found, it returns the entire row as TL.takelarg is true, the function searches for the first row where the first column is greater than or equal to M and returns that row.takelarg is false, the function searches for the last row where the first column is less than or equal to M. If such a row is found, it returns that row. If no such row exists, it throws an error indicating that no suitable value was found.