FIND YOUR NEXT FEW LINES

Results for “numeric”

Small, practical examples. Search by task or narrow things down below.

131 snippets foundClear filters
SQL ServerGetting Started

Filter by a numeric comparison

SQL Server: Keep rows whose quantity exceeds a chosen threshold.

SQL Server✓ Tested
PostgresGetting Started

Filter by a numeric comparison

Postgres: Keep rows whose quantity exceeds a chosen threshold.

Postgres✓ Tested
SQLiteGetting Started

Filter by a numeric comparison

SQLite: Keep rows whose quantity exceeds a chosen threshold.

SQLite✓ Tested
Bash ScriptsText parsing & arithmetic

Format a numeric label with leading zeroes

Bash Scripts: Use a constant printf format string and supply values as separate arguments.

Bash Scripts✓ Tested
Linux CommandsDates & process utilities

Format a zero-padded numeric label

Linux Commands: Use printf formatting instead of concatenating a variable number of zeroes.

Linux Commands✓ Tested
ReactForms & validation

Keep numeric input text until conversion

Keep numeric input text until conversion with a small React component and explicit browser behavior.

React✓ Tested
HTMLInput constraints

Limit a numeric input to an inclusive range

HTML: Number inputs expose range validation separately from the entered text.

HTML✓ Tested
JavaScriptStrings

Pad a numeric label

Convert a number to text and pad it to a fixed width.

JavaScript✓ Tested
C#Text validation & encoding

Pad a numeric label to a fixed width

C#: Use a numeric format specifier to add leading zeroes.

C#✓ Tested
C#Collections & data structures

Process items by numeric priority

C#: PriorityQueue removes the item with the smallest priority value first.

C#✓ Tested
C++Numeric parsing & calculations

Reject infinite and NaN numeric values

C++: std::isfinite excludes special floating-point values.

C++✓ Tested
PythonNumbers & calculations

Reject NaN and infinite numeric inputs

Python: Use isfinite before computations that require an ordinary finite float.

Python✓ Tested