Cog-Creators / Cog-Creators/Red-DiscordBot

Make user friendly references to Integer and rational number in user facing strings

Open
#5,968 0 comments 2 reactions 0 assignees View on GitHub
Status: Needs Discussion Type: Enhancement
Dominant language
Python
Stars
5.7k
Forks
2.5k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

### What component of Red (cog, command, API) would you like to see improvements on?

All

### Describe the enhancement you're suggesting.

Float is currently referenced as "number"
and Int is currently referenced as "Integer"

Integer is not widely used outside of the maths and science fields, and for common speech (informal) it is refferenced as "Whole number" whereas float is while referenced to as a "decimal number" due to the decimal place.

The current reference of float is misleading at best.

We should ensure consistent reference to these are made.

"Whole number" is a colloquial term in mathematics which is tought in schools (Since 1950 as part of the New Math movement in the US)

What I would suggest due to the target audience of red is the following:

Positive only float - Positive decimal number (>=0)
Negative only float - Negative decimal number (<=-1)
Any float - Decimal number

Positive int - Positive whole number (>=0)
Negative int - Negative whole number (<=-1)
Any int - Whole number

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.