Có gì mới?

Welcome to VOZ Forums - Cộng đồng công nghệ & đời sống Việt Nam

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Version Calculator

Calculate version values.

Version Calculator

Enter a version string (e.g., 2.3.0 or 2.3.0 beta1)
Enter a numeric version ID to convert to version string
Reset

Result

Field Value
Version String -
Version ID -
Major Version -
Minor Version -
Patch Version -
Suffix -
Suffix Version -

Version Examples

Version String Examples Version ID Examples
1.0.0 - Stable version 1000070 - Stable version ID
1.0.0 alpha1 - Alpha version 1000010 - Alpha version ID
1.0.0 beta1 - Beta version 1000030 - Beta version ID
1.0.0 rc1 - Release candidate version 1000050 - Release candidate version ID
1.0.0 pl1 - Patch level version 1000071 - Patch level version ID

What is Version Calculator?

Version Calculator is a tool that converts XenForo version strings (like "2.3.0 beta1") to version IDs and vice versa. This is essential for addon developers working with version comparisons.

How Does Version ID Calculation Work?

XenForo uses a numeric version ID system where each version string is converted to an integer. The formula is: (major × 1,000,000) + (minor × 10,000) + (patch × 100) + suffix_code. For example, "2.3.0" becomes 2030070.

What Are Version Suffixes?

XenForo supports several version suffixes: alpha (development), beta (testing), rc (release candidate), pl (patch level), and stable (final release). Each suffix has a specific numeric range in the version ID.

Why Use Version Calculator?

When developing addons, you often need to check version compatibility using version_id comparisons. This tool helps you quickly convert between human-readable version strings and the numeric IDs used in code.

Frequently Asked Questions

How do I convert a version string to a version ID?

Enter a version string (like "2.3.0") in the Version String field, and the tool will automatically calculate and display the corresponding version ID.

How do I convert a version ID to a version string?

Enter a version ID (like "2030070") in the Version ID field, and the tool will automatically convert it back to a human-readable version string.

What version suffixes are supported?

XenForo supports alpha (a), beta (b), rc (release candidate), pl (patch level), and stable versions. Each has specific numeric ranges in the version ID system.

How is the version ID calculated?

The version ID is calculated as: (major × 1,000,000) + (minor × 10,000) + (patch × 100) + suffix_code. Suffix codes range from 10-19 for alpha, 30-49 for beta, 50-69 for rc, and 71-99 for pl.

Can I use the example versions?

Click on any example in the "Version Examples" section below the calculator. The tool will automatically populate the fields and show the conversion result.

Khách

0 / ∞

Used Tool Limit

0 / ∞

Used Site Limit
Back
Top