Spaces:
Sleeping
Sleeping
Download data/blocks/CONVERT.json from notsn/headless_scilab: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/notsn/headless_scilab/resolve/main/data/blocks/CONVERT.json
- Command line
-
hf download hf://spaces/notsn/headless_scilab/data/blocks/CONVERT.json
-
curl -L -o CONVERT.json https://huggingface.co/spaces/notsn/headless_scilab/resolve/main/data/blocks/CONVERT.json
1.13 kB
| { | |
| "relatedBlocks": [ | |
| "BITSET", | |
| "BITCLEAR", | |
| "DOLLAR", | |
| "REGISTER" | |
| ], | |
| "criticalRules": [ | |
| "Type codes: 1=double, 2=int32, 3=uint32, 4=int16, 5=uint16, 6=int8, 7=uint8", | |
| "exprs[0]=input type, exprs[1]=output type", | |
| "exprs[2]=0: truncate, 1: round when converting to integer", | |
| "dataColumns=-2 enables auto-dimensioning for vector/matrix inputs", | |
| "Converts both data type and can round/truncate values" | |
| ], | |
| "description": "Data type converter - converts signal between different numeric types", | |
| "anomalies": [ | |
| "dataColumns=-2 and dataLines=-1 (auto-dimensioning)", | |
| "Input dataType=REAL_MATRIX, Output dataType=INT32_MATRIX (type conversion)", | |
| "No realParameters - uses integerParameters for type code", | |
| "Special negative values for dimension handling" | |
| ], | |
| "name": "CONVERT", | |
| "commonUses": [ | |
| "Converting between double and integer types", | |
| "Preparing data for BITSET/BITCLEAR operations", | |
| "Signal conditioning for hardware interfaces", | |
| "Type-safe signal routing" | |
| ], | |
| "sourceFile": "data/macros/IntegerOp/CONVERT.sci" | |
| } |