From 76b383219b60d65c82d3fdc7581545e42f2a849a Mon Sep 17 00:00:00 2001 From: augusto-mantilla Date: Tue, 8 Jun 2021 18:48:35 +0100 Subject: [PATCH] Clarify instructions for atoibase --- subjects/atoibase/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subjects/atoibase/README.md b/subjects/atoibase/README.md index c1ecbd73..af468335 100644 --- a/subjects/atoibase/README.md +++ b/subjects/atoibase/README.md @@ -2,7 +2,12 @@ ### Instructions -Write a function that takes a `string` number and its `string` base as parameters and returns its conversion as an `int`. +Write a function that takes two arguments: + +- `s`: a numeric `string` in a given [base](https://simple.wikipedia.org/wiki/Base_(mathematics)). +- `base`: a `string` representing all the different digits that can represent a numeric value. + +And return the integer value of `s` in the given `base`. If the base is not valid it returns `0`.