• Intro Headers Instructions Macros Commands
Fork me on GitHub
    • Getting Started
      • Introduction
      • How to install bnd
      • Guided Tour Workspace & Projects
      • bnd / bndlib Features and JAR Wrapping Techniques
      • FAQ - Frequently Asked Questions
    • Concepts and Practices
      • Concepts
      • Background
      • Best practices
    • Build and Development
      • Build
      • Generating JARs
      • Versioning
      • Baselining
      • Service Components
      • Metatype
      • Contracts
      • Bundle Annotations
      • Accessor Properties
      • SPI Annotations
    • Dependency and Launching
      • Resolving Dependencies
      • Launching
      • Startlevels
    • Testing
      • Testing
      • Testing with Launchpad
    • Packaging and Distribution
      • Packaging Applications
      • JPMS Libraries
      • Wrapping Libraries to OSGi Bundles
    • Documentation and Tools
      • Generating Documentation
      • bnd CLI Commands
      • For Developers
      • Templates for Workspaces
      • Tips for Windows users
      • Tools bound to bnd
    • Reference Material
      • Reference
      • Headers
      • Instruction Reference
      • Instruction Index
      • Macro Reference
      • Macro Index
      • Plugins
      • External Plugins
    • Configuration and Troubleshooting
      • Settings
      • Errors
      • Warnings
  • nmin (';' LIST )*

    Prev Next
    Macro
    Find the minimum number in one or more lists

    Summary

    The nmin macro compares numeric values using floating-point comparison and returns the minimum (lowest) number.

    Syntax

    ${nmin;<list>[;<list>...]}
    

    Parameters

    • list - One or more semicolon-separated lists of numeric values

    Behavior

    • Parses all values as doubles
    • Compares numerically (not lexicographically)
    • Returns the lowest number
    • Handles integers and decimals

    Examples

    Find minimum number:

    ${nmin;10,5,20,3}
    # Returns: "3"
    

    Multiple lists:

    ${nmin;100,200;50,150}
    # Returns: "50"
    

    Decimals:

    ${nmin;1.5,2.3,0.9}
    # Returns: "0.9"
    

    Use Cases

    • Finding minimum numeric value
    • Numeric comparison
    • Statistics and analysis
    • Threshold calculations
    • Data processing

    Notes

    • Numeric comparison (not string)
    • Handles negative numbers
    • Floating-point precision
    • See also: ${nmax} for maximum
    • See also: ${min} for string comparison
    • See also: ${vmin} for version comparison

    See test cases in MacroTestsForDocsExamples.java

Prev Next
Search
    • Home