Double-entry accounting positive and negative debits and credits

In double-entry accounting, all transactions have a double-entry. If the transaction is a credit, then the double-entry is a debit and vice versa. Also, the transaction amount is positive or negative depending on if the account the transaction is in is a debit account or a credit account. Example: If you create a salary transaction in the income account, that should be a credit which is a positive number. If the double-entry account is a checking account, which is a debit account, it's entry should also be a positive number, not a negative number.